Web:Client:Delete roomsFilterValue, isPageWithoutFiles, add isEmptyPage, setIsEmptyPage.
This commit is contained in:
parent
b97d4d8148
commit
86d2f1243b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user