Merge pull request #7531 from rekonder/aj_SCI_10677

Fix loading global search  data for full view [SCI-10677]
This commit is contained in:
aignatov-bio 2024-05-07 10:28:19 +02:00 committed by GitHub
commit 486bd33eb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 7 deletions

View file

@ -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>

View file

@ -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() {