Web:Client:Delete roomsFilterValue, isPageWithoutFiles, add isEmptyPage, setIsEmptyPage.

This commit is contained in:
Vlada Gazizova 2022-09-25 12:29:07 +03:00
parent b97d4d8148
commit 86d2f1243b

View File

@ -88,6 +88,8 @@ class FilesStore {
trashIsEmpty = false;
filesIsLoading = false;
isEmptyPage = false;
constructor(
authStore,
selectedFolderStore,
@ -315,6 +317,10 @@ class FilesStore {
this.startDrag = startDrag;
};
setIsEmptyPage = (isEmptyPage) => {
this.isEmptyPage = isEmptyPage;
};
get tooltipOptions() {
if (!this.dragging) return null;
@ -2580,25 +2586,10 @@ class FilesStore {
return this.roomsFilter.total;
}
get roomsFilterValue() {
return this.roomsFilter.filterValue;
}
get filterTotal() {
return this.filter.total;
}
get isPageWithoutFiles() {
const { isRoomsFolder, isArchiveFolder } = this.treeFoldersStore;
const isRooms = isRoomsFolder || isArchiveFolder;
if (isRooms) {
return this.isEmptyFilesList && !this.roomsFilterValue;
} else {
return this.isEmptyFilesList && !this.filterSearch;
}
}
get hasMoreFiles() {
const { isRoomsFolder, isArchiveFolder } = this.treeFoldersStore;