Web: Files: Added the ability to open the option to Share in Favorites and Recent folders.

This commit is contained in:
Tatiana Lopaeva 2021-09-17 09:49:12 +03:00
parent a96b66569a
commit 30a2718e97
2 changed files with 4 additions and 5 deletions

View File

@ -695,8 +695,7 @@ class FilesActionStore {
const removeDownloadAs = !hasSelection || !isWebEditSelected;
const removeShare =
isFavoritesFolder || isRecentFolder || !isAccessedSelected;
const removeShare = !isAccessedSelected; //isFavoritesFolder || isRecentFolder
const removeDownload = !hasSelection;
const removeMoveTo =

View File

@ -550,7 +550,7 @@ class FilesStore {
fileOptions = this.removeOptions(fileOptions, [
"copy",
"move-to",
"sharing-settings",
//"sharing-settings",
"unsubscribe",
]);
}
@ -981,9 +981,9 @@ class FilesStore {
case FolderType.TRASH:
return false;
case FolderType.Favorites:
return false;
return true; // false;
case FolderType.Recent:
return false;
return true; //false;
case FolderType.Privacy:
return true;
default: