mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-20 12:04:31 +08:00
Fix loading global search data for full view [SCI-10677]
This commit is contained in:
parent
fe59d975c4
commit
6a3e352610
2 changed files with 3 additions and 7 deletions
|
@ -15,7 +15,7 @@
|
|||
<LinkTemplate :url="row.attributes.url" :value="labelName({ name: row.attributes.name, archived: row.attributes.archived})"/>
|
||||
<CellTemplate :label="i18n.t('search.index.created_at')" :value="row.attributes.created_at"/>
|
||||
<CellTemplate :label="i18n.t('search.index.team')" :url="row.attributes.team.url" :value="row.attributes.team.name"/>
|
||||
<CellTemplate :label="i18n.t('search.index.floler')" :visible="row.attributes.parent_folder"
|
||||
<CellTemplate :label="i18n.t('search.index.folder')" :visible="row.attributes.parent_folder"
|
||||
:url="row.attributes.parent_folder?.url" :value="labelName(row.attributes.parent_folder)"/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -40,12 +40,8 @@ export default {
|
|||
this.reloadData();
|
||||
},
|
||||
selected() {
|
||||
if (this.selected) {
|
||||
if (!this.fullDataLoaded) {
|
||||
this.total = 0;
|
||||
this.results = [];
|
||||
this.loadData();
|
||||
}
|
||||
if (this.selected && !this.fullDataLoaded) {
|
||||
this.reloadData();
|
||||
}
|
||||
},
|
||||
query() {
|
||||
|
|
Loading…
Add table
Reference in a new issue