Web:Client:Delete isShowFilter, add isPageWithoutFiles.
This commit is contained in:
parent
f8dba869d0
commit
b9aa5ec695
@ -2588,19 +2588,15 @@ class FilesStore {
|
||||
return this.filter.total;
|
||||
}
|
||||
|
||||
get isShowFilter() {
|
||||
get isPageWithoutFiles() {
|
||||
const { isRoomsFolder, isArchiveFolder } = this.treeFoldersStore;
|
||||
const isRooms = isRoomsFolder || isArchiveFolder;
|
||||
|
||||
let showFilter;
|
||||
|
||||
if (isRooms) {
|
||||
showFilter = !this.isEmptyFilesList || !!this.roomsFilterValue;
|
||||
return this.isEmptyFilesList && !this.roomsFilterValue;
|
||||
} else {
|
||||
showFilter = !this.isEmptyFilesList || !!this.filterSearch;
|
||||
return this.isEmptyFilesList && !this.filterSearch;
|
||||
}
|
||||
|
||||
return showFilter;
|
||||
}
|
||||
|
||||
get hasMoreFiles() {
|
||||
|
Loading…
Reference in New Issue
Block a user