Web:Client:Store:ContextOptionsStore Added ids
This commit is contained in:
parent
1fc099db6e
commit
bb83e986e3
@ -486,6 +486,7 @@ class ContextOptionsStore {
|
||||
? onlyShowVersionHistory
|
||||
? [
|
||||
{
|
||||
id: "option_show-version-history",
|
||||
key: "show-version-history",
|
||||
label: t("ShowVersionHistory"),
|
||||
icon: "images/history.react.svg",
|
||||
@ -495,11 +496,13 @@ class ContextOptionsStore {
|
||||
]
|
||||
: [
|
||||
{
|
||||
id: "option_version",
|
||||
key: "version",
|
||||
label: t("VersionHistory"),
|
||||
icon: "images/history-finalized.react.svg",
|
||||
items: [
|
||||
{
|
||||
id: "option_finalize-version",
|
||||
key: "finalize-version",
|
||||
label: t("FinalizeVersion"),
|
||||
icon: "images/history-finalized.react.svg",
|
||||
@ -507,6 +510,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_version-history",
|
||||
key: "show-version-history",
|
||||
label: t("ShowVersionHistory"),
|
||||
icon: "images/history.react.svg",
|
||||
@ -518,6 +522,7 @@ class ContextOptionsStore {
|
||||
]
|
||||
: [
|
||||
{
|
||||
id: "option_finalize-version",
|
||||
key: "finalize-version",
|
||||
label: t("FinalizeVersion"),
|
||||
icon: "images/history-finalized.react.svg",
|
||||
@ -525,6 +530,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_version-history",
|
||||
key: "show-version-history",
|
||||
label: t("ShowVersionHistory"),
|
||||
icon: "images/history.react.svg",
|
||||
@ -538,11 +544,13 @@ class ContextOptionsStore {
|
||||
!isMobile && !isMobileUtils() && !isTabletUtils()
|
||||
? [
|
||||
{
|
||||
id: "option_move-or-copy",
|
||||
key: "move",
|
||||
label: t("MoveOrCopy"),
|
||||
icon: "/static/images/copy.react.svg",
|
||||
items: [
|
||||
{
|
||||
id: "option_move-to",
|
||||
key: "move-to",
|
||||
label: t("MoveTo"),
|
||||
icon: "images/move.react.svg",
|
||||
@ -550,6 +558,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_copy-to",
|
||||
key: "copy-to",
|
||||
label: t("Translations:Copy"),
|
||||
icon: "/static/images/copy.react.svg",
|
||||
@ -557,6 +566,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_create-copy",
|
||||
key: "copy",
|
||||
label: t("Common:Duplicate"),
|
||||
icon: "/static/images/duplicate.react.svg",
|
||||
@ -568,6 +578,7 @@ class ContextOptionsStore {
|
||||
]
|
||||
: [
|
||||
{
|
||||
id: "option_move-to",
|
||||
key: "move-to",
|
||||
label: t("MoveTo"),
|
||||
icon: "images/move.react.svg",
|
||||
@ -575,6 +586,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_copy-to",
|
||||
key: "copy-to",
|
||||
label: t("Translations:Copy"),
|
||||
icon: "/static/images/copy.react.svg",
|
||||
@ -582,6 +594,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_create-copy",
|
||||
key: "copy",
|
||||
label: t("Common:Duplicate"),
|
||||
icon: "/static/images/duplicate.react.svg",
|
||||
@ -592,6 +605,7 @@ class ContextOptionsStore {
|
||||
|
||||
const optionsModel = [
|
||||
{
|
||||
id: "option_select",
|
||||
key: "select",
|
||||
label: "Select",
|
||||
icon: "images/check-box.react.svg",
|
||||
@ -599,6 +613,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_open",
|
||||
key: "open",
|
||||
label: t("Open"),
|
||||
icon: "images/folder.react.svg",
|
||||
@ -606,6 +621,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_fill-form",
|
||||
key: "fill-form",
|
||||
label: t("Common:FillFormButton"),
|
||||
icon: "/static/images/form.fill.rect.svg",
|
||||
@ -613,6 +629,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_edit",
|
||||
key: "edit",
|
||||
label: t("Common:EditButton"),
|
||||
icon: "/static/images/access.edit.react.svg",
|
||||
@ -620,6 +637,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_preview",
|
||||
key: "preview",
|
||||
label: t("Preview"),
|
||||
icon: "/static/images/eye.react.svg",
|
||||
@ -627,6 +645,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_view",
|
||||
key: "view",
|
||||
label: t("Common:View"),
|
||||
icon: "/static/images/eye.react.svg",
|
||||
@ -634,6 +653,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_make-form",
|
||||
key: "make-form",
|
||||
label: t("Common:MakeForm"),
|
||||
icon: "/static/images/form.plus.react.svg",
|
||||
@ -645,6 +665,7 @@ class ContextOptionsStore {
|
||||
isSeparator: true,
|
||||
},
|
||||
{
|
||||
id: "option_reconnect-storage",
|
||||
key: "reconnect-storage",
|
||||
label: t("Common:ReconnectStorage"),
|
||||
icon: "images/reconnect.svg",
|
||||
@ -652,6 +673,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_edit-room",
|
||||
key: "edit-room",
|
||||
label: t("EditRoom"),
|
||||
icon: "images/settings.react.svg",
|
||||
@ -659,6 +681,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_invite-users-to-room",
|
||||
key: "invite-users-to-room",
|
||||
label: t("InviteUsers"),
|
||||
icon: "/static/images/person.react.svg",
|
||||
@ -667,6 +690,7 @@ class ContextOptionsStore {
|
||||
action: item.id,
|
||||
},
|
||||
{
|
||||
id: "option_room-info",
|
||||
key: "room-info",
|
||||
label: t("Common:Info"),
|
||||
icon: "/static/images/info.outline.react.svg",
|
||||
@ -674,6 +698,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_pin-room",
|
||||
key: "pin-room",
|
||||
label: t("Pin"),
|
||||
icon: "/static/images/pin.react.svg",
|
||||
@ -683,6 +708,7 @@ class ContextOptionsStore {
|
||||
action: "pin",
|
||||
},
|
||||
{
|
||||
id: "option_unpin-room",
|
||||
key: "unpin-room",
|
||||
label: t("Unpin"),
|
||||
icon: "/static/images/unpin.react.svg",
|
||||
@ -692,6 +718,7 @@ class ContextOptionsStore {
|
||||
action: "unpin",
|
||||
},
|
||||
{
|
||||
id: "option_sharing-settings",
|
||||
key: "sharing-settings",
|
||||
label: t("SharingPanel:SharingSettingsTitle"),
|
||||
icon: "/static/images/share.react.svg",
|
||||
@ -699,6 +726,7 @@ class ContextOptionsStore {
|
||||
disabled: !isShareable,
|
||||
},
|
||||
{
|
||||
id: "option_owner-change",
|
||||
key: "owner-change",
|
||||
label: t("Translations:OwnerChange"),
|
||||
icon: "images/file.actions.owner.react.svg",
|
||||
@ -706,6 +734,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_link-for-portal-users",
|
||||
key: "link-for-portal-users",
|
||||
label: t("LinkForPortalUsers"),
|
||||
icon: "/static/images/invitation.link.react.svg",
|
||||
@ -713,6 +742,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_send-by-email",
|
||||
key: "send-by-email",
|
||||
label: t("SendByEmail"),
|
||||
icon: "/static/images/mail.react.svg",
|
||||
@ -720,6 +750,7 @@ class ContextOptionsStore {
|
||||
},
|
||||
...versionActions,
|
||||
{
|
||||
id: "option_show-info",
|
||||
key: "show-info",
|
||||
label: t("Common:Info"),
|
||||
icon: "/static/images/info.outline.react.svg",
|
||||
@ -732,6 +763,7 @@ class ContextOptionsStore {
|
||||
isSeparator: true,
|
||||
},
|
||||
{
|
||||
id: "option_open-location",
|
||||
key: "open-location",
|
||||
label: t("OpenLocation"),
|
||||
icon: "images/folder.location.react.svg",
|
||||
@ -739,6 +771,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_mark-read",
|
||||
key: "mark-read",
|
||||
label: t("MarkRead"),
|
||||
icon: "images/tick.rounded.svg",
|
||||
@ -746,6 +779,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_mark-as-favorite",
|
||||
key: "mark-as-favorite",
|
||||
label: t("MarkAsFavorite"),
|
||||
icon: "images/favorites.react.svg",
|
||||
@ -755,6 +789,7 @@ class ContextOptionsStore {
|
||||
action: "mark",
|
||||
},
|
||||
{
|
||||
id: "option_remove-from-favorites",
|
||||
key: "remove-from-favorites",
|
||||
label: t("RemoveFromFavorites"),
|
||||
icon: "images/favorites.react.svg",
|
||||
@ -764,6 +799,7 @@ class ContextOptionsStore {
|
||||
action: "remove",
|
||||
},
|
||||
{
|
||||
id: "option_download",
|
||||
key: "download",
|
||||
label: t("Common:Download"),
|
||||
icon: "images/download.react.svg",
|
||||
@ -771,6 +807,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_download-as",
|
||||
key: "download-as",
|
||||
label: t("Translations:DownloadAs"),
|
||||
icon: "images/download-as.react.svg",
|
||||
@ -779,6 +816,7 @@ class ContextOptionsStore {
|
||||
},
|
||||
...moveActions,
|
||||
{
|
||||
id: "option_restore",
|
||||
key: "restore",
|
||||
label: t("Common:Restore"),
|
||||
icon: "images/move.react.svg",
|
||||
@ -786,6 +824,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_rename",
|
||||
key: "rename",
|
||||
label: t("Rename"),
|
||||
icon: "images/rename.react.svg",
|
||||
@ -797,6 +836,7 @@ class ContextOptionsStore {
|
||||
isSeparator: true,
|
||||
},
|
||||
{
|
||||
id: "option_unsubscribe",
|
||||
key: "unsubscribe",
|
||||
label: t("RemoveFromList"),
|
||||
icon: "images/remove.svg",
|
||||
@ -804,6 +844,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_change-thirdparty-info",
|
||||
key: "change-thirdparty-info",
|
||||
label: t("Translations:ThirdPartyInfo"),
|
||||
icon: "/static/images/access.edit.react.svg",
|
||||
@ -811,6 +852,7 @@ class ContextOptionsStore {
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
id: "option_archive-room",
|
||||
key: "archive-room",
|
||||
label: t("Archived"),
|
||||
icon: "/static/images/room.archive.svg",
|
||||
@ -820,6 +862,7 @@ class ContextOptionsStore {
|
||||
action: "archive",
|
||||
},
|
||||
{
|
||||
id: "option_unarchive-room",
|
||||
key: "unarchive-room",
|
||||
label: t("Common:Restore"),
|
||||
icon: "images/subtract.react.svg",
|
||||
@ -829,6 +872,7 @@ class ContextOptionsStore {
|
||||
action: "unarchive",
|
||||
},
|
||||
{
|
||||
id: "option_delete",
|
||||
key: "delete",
|
||||
label: isRootThirdPartyFolder
|
||||
? t("Common:Disconnect")
|
||||
|
Loading…
Reference in New Issue
Block a user