Web:Client:Store:FilesActionsStore Added ids

This commit is contained in:
Akmal Isomadinov 2022-11-24 12:51:54 +05:00
parent 72eec51a6f
commit 6c79c21562

View File

@ -1445,6 +1445,7 @@ class FilesActionStore {
if (!isTablet() && !isMobile) return null;
else
return {
id: "menu-show-info",
key: "show-info",
label: t("Common:Info"),
iconUrl: "/static/images/info.outline.react.svg",
@ -1454,6 +1455,7 @@ class FilesActionStore {
if (!this.isAvailableOption("copy")) return null;
else
return {
id: "menu-copy",
label: t("Translations:Copy"),
onClick: () => setCopyPanelVisible(true),
iconUrl: "/static/images/copyTo.react.svg",
@ -1463,6 +1465,7 @@ class FilesActionStore {
if (!this.isAvailableOption("download")) return null;
else
return {
id: "menu-download",
label: t("Common:Download"),
onClick: () =>
this.downloadAction(
@ -1475,6 +1478,7 @@ class FilesActionStore {
if (!this.isAvailableOption("downloadAs")) return null;
else
return {
id: "menu-download-as",
label: t("Translations:DownloadAs"),
onClick: () => setDownloadDialogVisible(true),
iconUrl: "/static/images/downloadAs.react.svg",
@ -1484,12 +1488,14 @@ class FilesActionStore {
if (!this.isAvailableOption("moveTo")) return null;
else
return {
id: "menu-move-to",
label: t("MoveTo"),
onClick: () => setMoveToPanelVisible(true),
iconUrl: "/static/images/move.react.svg",
};
case "pin":
return {
id: "menu-pin",
key: "pin",
label: t("Pin"),
iconUrl: "/static/images/pin.react.svg",
@ -1498,6 +1504,7 @@ class FilesActionStore {
};
case "unpin":
return {
id: "menu-unpin",
key: "unpin",
label: t("Unpin"),
iconUrl: "/static/images/unpin.react.svg",
@ -1508,6 +1515,7 @@ class FilesActionStore {
if (!this.isAvailableOption("archive")) return null;
else
return {
id: "menu-archive",
key: "archive",
label: t("Archived"),
iconUrl: "/static/images/room.archive.svg",
@ -1518,6 +1526,7 @@ class FilesActionStore {
if (!this.isAvailableOption("unarchive")) return null;
else
return {
id: "menu-unarchive",
key: "unarchive",
label: t("Common:Restore"),
iconUrl: "images/subtract.react.svg",
@ -1528,6 +1537,7 @@ class FilesActionStore {
if (!this.isAvailableOption("delete-room")) return null;
else
return {
id: "menu-delete-room",
label: t("Common:Delete"),
onClick: () => this.deleteRooms(t),
iconUrl: "/static/images/delete.react.svg",
@ -1537,6 +1547,7 @@ class FilesActionStore {
if (!this.isAvailableOption("delete")) return null;
else
return {
id: "menu-delete",
label: t("Common:Delete"),
onClick: () => {
if (this.settingsStore.confirmDelete) {