Web:Client:Add roomsFilterValue, isShowFilter.

This commit is contained in:
Vlada Gazizova 2022-09-23 19:15:53 +03:00
parent 49b5522ce6
commit 9b8a4e7fcb

View File

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