可选允许搜索

This commit is contained in:
2021-12-15 00:05:42 +08:00
parent 3d8a443166
commit 3fa49b9ad6
6 changed files with 37 additions and 11 deletions

View File

@@ -271,6 +271,9 @@ class FlowItem extends PureComponent {
</div>
)
}
{
info.allow_search && <span> 📢 </span>
}
<Time stamp={info.timestamp} short={!img_clickable} />
</div>
<div className="box-content">
@@ -1170,7 +1173,7 @@ export class Flow extends PureComponent {
}));
})
.catch(failed);
} else if (this.state.mode === 'search') {
} else if (this.state.mode === 'search' && this.state.search_param) {
API.get_search(page, this.state.search_param, this.props.token)
.then((json) => {
const finished = json.data.length === 0;