Web:Client:Add roomsFilterValue, isShowFilter.
This commit is contained in:
parent
49b5522ce6
commit
9b8a4e7fcb
@ -2580,10 +2580,29 @@ class FilesStore {
|
||||
return this.roomsFilter.total;
|
||||
}
|
||||
|
||||
get roomsFilterValue() {
|
||||
return this.roomsFilter.filterValue;
|
||||
}
|
||||
|
||||
get filterTotal() {
|
||||
return this.filter.total;
|
||||
}
|
||||
|
||||
get isShowFilter() {
|
||||
const { isRoomsFolder, isArchiveFolder } = this.treeFoldersStore;
|
||||
const isRooms = isRoomsFolder || isArchiveFolder;
|
||||
|
||||
let showFilter;
|
||||
|
||||
if (isRooms) {
|
||||
showFilter = !this.isEmptyFilesList || !!this.roomsFilterValue;
|
||||
} else {
|
||||
showFilter = !this.isEmptyFilesList || !!this.filterSearch;
|
||||
}
|
||||
|
||||
return showFilter;
|
||||
}
|
||||
|
||||
get hasMoreFiles() {
|
||||
const { isRoomsFolder, isArchiveFolder } = this.treeFoldersStore;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user