[arvados] updated: 2.7.0-6261-g04c46ad793
git repository hosting
git at public.arvados.org
Thu Mar 28 13:21:31 UTC 2024
Summary of changes:
.../api-client-authorization-action-set.ts | 8 +++----
.../action-sets/collection-action-set.ts | 28 +++++++++++-----------
.../action-sets/collection-files-action-set.ts | 20 ++++++++--------
.../collection-files-item-action-set.ts | 20 ++++++++--------
.../collection-files-not-selected-action-set.ts | 4 ++--
.../action-sets/favorite-action-set.ts | 4 ++--
.../context-menu/action-sets/group-action-set.ts | 10 ++++----
.../action-sets/group-member-action-set.ts | 8 +++----
.../action-sets/keep-service-action-set.ts | 8 +++----
.../context-menu/action-sets/link-action-set.ts | 8 +++----
.../action-sets/permission-edit-action-set.ts | 8 +++----
.../action-sets/process-resource-action-set.ts | 26 ++++++++++----------
.../context-menu/action-sets/project-action-set.ts | 26 ++++++++++----------
.../action-sets/project-admin-action-set.ts | 4 ++--
.../action-sets/repository-action-set.ts | 10 ++++----
.../action-sets/resource-action-set.ts | 4 ++--
.../action-sets/root-project-action-set.ts | 6 ++---
.../action-sets/search-results-action-set.ts | 10 ++++----
.../context-menu/action-sets/ssh-key-action-set.ts | 8 +++----
.../context-menu/action-sets/trash-action-set.ts | 4 ++--
.../action-sets/trashed-collection-action-set.ts | 10 ++++----
.../context-menu/action-sets/user-action-set.ts | 18 +++++++-------
.../action-sets/virtual-machine-action-set.ts | 8 +++----
.../action-sets/workflow-action-set.ts | 14 +++++------
.../context-menu/context-menu-action-set.ts | 10 ++++----
.../ms-collection-action-set.ts | 10 ++++----
.../multiselect-toolbar/ms-menu-actions.ts | 2 +-
.../multiselect-toolbar/ms-project-action-set.ts | 16 ++++++-------
28 files changed, 157 insertions(+), 155 deletions(-)
via 04c46ad79307ac28644adc5f25a05d8f0736c499 (commit)
from 83a1b654fd2a6e15c6122da161a32443e7409623 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 04c46ad79307ac28644adc5f25a05d8f0736c499
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Thu Mar 28 09:21:21 2024 -0400
21448: replaced all context menu names with string constants Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/api-client-authorization-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/api-client-authorization-action-set.ts
index 8e75d22f67..4a01864f39 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/api-client-authorization-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/api-client-authorization-action-set.ts
@@ -7,27 +7,27 @@ import {
openApiClientAuthorizationRemoveDialog,
} from "store/api-client-authorizations/api-client-authorizations-actions";
import { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
-import { ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set";
+import { ContextMenuActionSet, ContextMenuActionNames } from "views-components/context-menu/context-menu-action-set";
import { AdvancedIcon, RemoveIcon, AttributesIcon } from "components/icon/icon";
export const apiClientAuthorizationActionSet: ContextMenuActionSet = [
[
{
- name: "Attributes",
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openApiClientAuthorizationAttributesDialog(resources[0].uuid));
},
},
{
- name: "API Details",
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: "Remove",
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openApiClientAuthorizationRemoveDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/collection-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/collection-action-set.ts
index 16f87aa481..f046ebece3 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/collection-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/collection-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuAction, ContextMenuActionSet } from "../context-menu-action-set";
+import { ContextMenuAction, ContextMenuActionSet, ContextMenuActionNames } from "../context-menu-action-set";
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { toggleFavorite } from "store/favorites/favorites-actions";
import {
@@ -36,7 +36,7 @@ import { ContextMenuResource } from "store/context-menu/context-menu-actions";
const toggleFavoriteAction: ContextMenuAction = {
component: ToggleFavoriteAction,
- name: "Add to Favorites",
+ name: ContextMenuActionNames.ADD_TO_FAVORITES,
execute: (dispatch, resources) => {
for (const resource of [...resources]) {
dispatch<any>(toggleFavorite(resource)).then(() => {
@@ -49,21 +49,21 @@ const commonActionSet: ContextMenuActionSet = [
[
{
icon: OpenIcon,
- name: "Open in new tab",
+ name: ContextMenuActionNames.OPEN_IN_NEW_TAB,
execute: (dispatch, resources) => {
dispatch<any>(openInNewTabAction(resources[0]));
},
},
{
icon: Link,
- name: "Copy to clipboard",
+ name: ContextMenuActionNames.COPY_TO_CLIPBOARD,
execute: (dispatch, resources) => {
dispatch<any>(copyToClipboardAction(resources));
},
},
{
icon: CopyIcon,
- name: "Make a copy",
+ name: ContextMenuActionNames.MAKE_A_COPY,
execute: (dispatch, resources) => {
if (resources[0].fromContextMenu || resources.length === 1) dispatch<any>(openCollectionCopyDialog(resources[0]));
else dispatch<any>(openMultiCollectionCopyDialog(resources[0]));
@@ -71,14 +71,14 @@ const commonActionSet: ContextMenuActionSet = [
},
{
icon: DetailsIcon,
- name: "View details",
+ name: ContextMenuActionNames.VIEW_DETAILS,
execute: dispatch => {
dispatch<any>(toggleDetailsPanel());
},
},
{
icon: AdvancedIcon,
- name: "API Details",
+ name: ContextMenuActionNames.API_DETAILS,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
@@ -92,7 +92,7 @@ export const readOnlyCollectionActionSet: ContextMenuActionSet = [
toggleFavoriteAction,
{
icon: FolderSharedIcon,
- name: "Open with 3rd party client",
+ name: ContextMenuActionNames.OPEN_WITH_3RD_PARTY_CLIENT,
execute: (dispatch, resources) => {
dispatch<any>(openWebDavS3InfoDialog(resources[0].uuid));
},
@@ -105,26 +105,26 @@ export const collectionActionSet: ContextMenuActionSet = [
...readOnlyCollectionActionSet.reduce((prev, next) => prev.concat(next), []),
{
icon: RenameIcon,
- name: "Edit collection",
+ name: ContextMenuActionNames.EDIT_COLLECTION,
execute: (dispatch, resources) => {
dispatch<any>(openCollectionUpdateDialog(resources[0]));
},
},
{
icon: ShareIcon,
- name: "Share",
+ name: ContextMenuActionNames.SHARE,
execute: (dispatch, resources) => {
dispatch<any>(openSharingDialog(resources[0].uuid));
},
},
{
icon: MoveToIcon,
- name: "Move to",
+ name: ContextMenuActionNames.MOVE_TO,
execute: (dispatch, resources) => dispatch<any>(openMoveCollectionDialog(resources[0])),
},
{
component: ToggleTrashAction,
- name: "Move to trash",
+ name: ContextMenuActionNames.MOVE_TO_TRASH,
execute: (dispatch, resources: ContextMenuResource[]) => {
for (const resource of [...resources]) {
dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));
@@ -139,7 +139,7 @@ export const collectionAdminActionSet: ContextMenuActionSet = [
...collectionActionSet.reduce((prev, next) => prev.concat(next), []),
{
component: TogglePublicFavoriteAction,
- name: "Add to public favorites",
+ name: ContextMenuActionNames.ADD_TO_PUBLIC_FAVORITES,
execute: (dispatch, resources) => {
for (const resource of [...resources]) {
dispatch<any>(togglePublicFavorite(resource)).then(() => {
@@ -156,7 +156,7 @@ export const oldCollectionVersionActionSet: ContextMenuActionSet = [
...commonActionSet.reduce((prev, next) => prev.concat(next), []),
{
icon: RestoreVersionIcon,
- name: "Restore version",
+ name: ContextMenuActionNames.RESTORE_VERSION,
execute: (dispatch, resources) => {
for (const resource of [...resources]) {
dispatch<any>(openRestoreCollectionVersionDialog(resource.uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/collection-files-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/collection-files-action-set.ts
index 80deb37cad..a117cbc1b0 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/collection-files-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/collection-files-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuAction, ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set";
+import { ContextMenuAction, ContextMenuActionSet, ContextMenuActionNames } from "views-components/context-menu/context-menu-action-set";
import { collectionPanelFilesAction, openMultipleFilesRemoveDialog } from "store/collection-panel/collection-panel-files/collection-panel-files-actions";
import {
openCollectionPartialCopyMultipleToNewCollectionDialog,
@@ -14,14 +14,14 @@ import { FileCopyIcon, FileMoveIcon, RemoveIcon, SelectAllIcon, SelectNoneIcon }
const copyActions: ContextMenuAction[] = [
{
- name: "Copy selected into new collection",
+ name: ContextMenuActionNames.COPY_SELECTED_INTO_NEW_COLLECTION,
icon: FileCopyIcon,
execute: dispatch => {
dispatch<any>(openCollectionPartialCopyMultipleToNewCollectionDialog());
}
},
{
- name: "Copy selected into existing collection",
+ name: ContextMenuActionNames.COPY_SELECTED_INTO_EXISTING_COLLECTION,
icon: FileCopyIcon,
execute: dispatch => {
dispatch<any>(openCollectionPartialCopyMultipleToExistingCollectionDialog());
@@ -32,7 +32,7 @@ const copyActions: ContextMenuAction[] = [
const copyActionsMultiple: ContextMenuAction[] = [
...copyActions,
{
- name: "Copy selected into separate collections",
+ name: ContextMenuActionNames.COPY_SELECTED_INTO_SEPARATE_COLLECTIONS,
icon: FileCopyIcon,
execute: dispatch => {
dispatch<any>(openCollectionPartialCopyToSeparateCollectionsDialog());
@@ -42,14 +42,14 @@ const copyActionsMultiple: ContextMenuAction[] = [
const moveActions: ContextMenuAction[] = [
{
- name: "Move selected into new collection",
+ name: ContextMenuActionNames.MOVE_SELECTED_INTO_NEW_COLLECTION,
icon: FileMoveIcon,
execute: dispatch => {
dispatch<any>(openCollectionPartialMoveMultipleToNewCollectionDialog());
}
},
{
- name: "Move selected into existing collection",
+ name: ContextMenuActionNames.MOVE_SELECTED_INTO_EXISTING_COLLECTION,
icon: FileMoveIcon,
execute: dispatch => {
dispatch<any>(openCollectionPartialMoveMultipleToExistingCollectionDialog());
@@ -60,7 +60,7 @@ const moveActions: ContextMenuAction[] = [
const moveActionsMultiple: ContextMenuAction[] = [
...moveActions,
{
- name: "Move selected into separate collections",
+ name: ContextMenuActionNames.MOVE_SELECTED_INTO_SEPARATE_COLLECTIONS,
icon: FileMoveIcon,
execute: dispatch => {
dispatch<any>(openCollectionPartialMoveToSeparateCollectionsDialog());
@@ -70,14 +70,14 @@ const moveActionsMultiple: ContextMenuAction[] = [
const selectActions: ContextMenuAction[] = [
{
- name: "Select all",
+ name: ContextMenuActionNames.SELECT_ALL,
icon: SelectAllIcon,
execute: dispatch => {
dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES());
}
},
{
- name: "Unselect all",
+ name: ContextMenuActionNames.UNSELECT_ALL,
icon: SelectNoneIcon,
execute: dispatch => {
dispatch(collectionPanelFilesAction.UNSELECT_ALL_COLLECTION_FILES());
@@ -86,7 +86,7 @@ const selectActions: ContextMenuAction[] = [
];
const removeAction: ContextMenuAction = {
- name: "Remove selected",
+ name: ContextMenuActionNames.REMOVE_SELECTED,
icon: RemoveIcon,
execute: dispatch => {
dispatch(openMultipleFilesRemoveDialog());
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts
index e42c82bf8e..d22c1dcdb0 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from "../context-menu-action-set";
+import { ContextMenuActionSet, ContextMenuActionNames } from "../context-menu-action-set";
import { FileCopyIcon, FileMoveIcon, RemoveIcon, RenameIcon } from "components/icon/icon";
import { DownloadCollectionFileAction } from "../actions/download-collection-file-action";
import { openFileRemoveDialog, openRenameFileDialog } from "store/collection-panel/collection-panel-files/collection-panel-files-actions";
@@ -20,14 +20,14 @@ import {
export const readOnlyCollectionDirectoryItemActionSet: ContextMenuActionSet = [
[
{
- name: "Copy item into new collection",
+ name: ContextMenuActionNames.COPY_ITEM_INTO_NEW_COLLECTION,
icon: FileCopyIcon,
execute: (dispatch, resources) => {
dispatch<any>(openCollectionPartialCopyToNewCollectionDialog(resources[0]));
},
},
{
- name: "Copy item into existing collection",
+ name: ContextMenuActionNames.COPY_ITEM_INTO_EXISTING_COLLECTION,
icon: FileCopyIcon,
execute: (dispatch, resources) => {
dispatch<any>(openCollectionPartialCopyToExistingCollectionDialog(resources[0]));
@@ -35,14 +35,14 @@ export const readOnlyCollectionDirectoryItemActionSet: ContextMenuActionSet = [
},
{
component: CollectionFileViewerAction,
- name: "Open in new tab",
+ name: ContextMenuActionNames.OPEN_IN_NEW_TAB,
execute: () => {
return;
},
},
{
component: CollectionCopyToClipboardAction,
- name: "Copy to clipboard",
+ name: ContextMenuActionNames.COPY_TO_CLIPBOARD,
execute: () => {
return;
},
@@ -54,7 +54,7 @@ export const readOnlyCollectionFileItemActionSet: ContextMenuActionSet = [
[
{
component: DownloadCollectionFileAction,
- name: "Download",
+ name: ContextMenuActionNames.DOWNLOAD,
execute: () => {
return;
},
@@ -66,21 +66,21 @@ export const readOnlyCollectionFileItemActionSet: ContextMenuActionSet = [
const writableActionSet: ContextMenuActionSet = [
[
{
- name: "Move item into new collection",
+ name: ContextMenuActionNames.MOVE_ITEM_INTO_NEW_COLLECTION,
icon: FileMoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openCollectionPartialMoveToNewCollectionDialog(resources[0]));
},
},
{
- name: "Move item into existing collection",
+ name: ContextMenuActionNames.MOVE_ITEM_INTO_EXISTING_COLLECTION,
icon: FileMoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openCollectionPartialMoveToExistingCollectionDialog(resources[0]));
},
},
{
- name: "Rename",
+ name: ContextMenuActionNames.RENAME,
icon: RenameIcon,
execute: (dispatch, resources) => {
dispatch<any>(
@@ -93,7 +93,7 @@ const writableActionSet: ContextMenuActionSet = [
},
},
{
- name: "Remove",
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openFileRemoveDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/collection-files-not-selected-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/collection-files-not-selected-action-set.ts
index 1e31d11c80..b457efdf9a 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/collection-files-not-selected-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/collection-files-not-selected-action-set.ts
@@ -2,12 +2,12 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set";
+import { ContextMenuActionSet, ContextMenuActionNames } from "views-components/context-menu/context-menu-action-set";
import { collectionPanelFilesAction } from "store/collection-panel/collection-panel-files/collection-panel-files-actions";
import { SelectAllIcon } from "components/icon/icon";
export const collectionFilesNotSelectedActionSet: ContextMenuActionSet = [[{
- name: "Select all",
+ name: ContextMenuActionNames.SELECT_ALL,
icon: SelectAllIcon,
execute: dispatch => {
dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES());
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/favorite-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/favorite-action-set.ts
index c01d8da9b5..115eec97eb 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/favorite-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/favorite-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from '../context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from '../context-menu-action-set';
import { ToggleFavoriteAction } from '../actions/favorite-action';
import { toggleFavorite } from 'store/favorites/favorites-actions';
import { favoritePanelActions } from 'store/favorite-panel/favorite-panel-action';
@@ -11,7 +11,7 @@ export const favoriteActionSet: ContextMenuActionSet = [
[
{
component: ToggleFavoriteAction,
- name: 'Add to Favorites',
+ name: ContextMenuActionNames.ADD_TO_FAVORITES,
execute: (dispatch, resources) => {
resources.forEach((resource) =>
dispatch<any>(toggleFavorite(resource)).then(() => {
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/group-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/group-action-set.ts
index 816583faa9..2c7f164ab1 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/group-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/group-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import { RenameIcon, AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
import { openGroupAttributes, openRemoveGroupDialog, openGroupUpdateDialog } from 'store/groups-panel/groups-panel-actions';
@@ -10,28 +10,28 @@ import { openGroupAttributes, openRemoveGroupDialog, openGroupUpdateDialog } fro
export const groupActionSet: ContextMenuActionSet = [
[
{
- name: 'Rename',
+ name: ContextMenuActionNames.RENAME,
icon: RenameIcon,
execute: (dispatch, resources) => {
dispatch<any>(openGroupUpdateDialog(resources[0]))
},
},
{
- name: 'Attributes',
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openGroupAttributes(resources[0].uuid))
},
},
{
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: 'Remove',
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openRemoveGroupDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/group-member-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/group-member-action-set.ts
index ad1ce97c2d..6b9611caa0 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/group-member-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/group-member-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import { AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
import { openGroupMemberAttributes, openRemoveGroupMemberDialog } from 'store/group-details-panel/group-details-panel-actions';
@@ -10,21 +10,21 @@ import { openGroupMemberAttributes, openRemoveGroupMemberDialog } from 'store/gr
export const groupMemberActionSet: ContextMenuActionSet = [
[
{
- name: 'Attributes',
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openGroupMemberAttributes(resources[0].uuid));
},
},
{
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: 'Remove',
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openRemoveGroupMemberDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/keep-service-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/keep-service-action-set.ts
index 2957f008cd..67ef034d6b 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/keep-service-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/keep-service-action-set.ts
@@ -4,27 +4,27 @@
import { openKeepServiceAttributesDialog, openKeepServiceRemoveDialog } from 'store/keep-services/keep-services-actions';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import { AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon';
export const keepServiceActionSet: ContextMenuActionSet = [
[
{
- name: 'Attributes',
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openKeepServiceAttributesDialog(resources[0].uuid));
},
},
{
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: 'Remove',
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openKeepServiceRemoveDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/link-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/link-action-set.ts
index 86458423c2..89356c0797 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/link-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/link-action-set.ts
@@ -4,27 +4,27 @@
import { openLinkAttributesDialog, openLinkRemoveDialog } from 'store/link-panel/link-panel-actions';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import { AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon';
export const linkActionSet: ContextMenuActionSet = [
[
{
- name: 'Attributes',
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openLinkAttributesDialog(resources[0].uuid));
},
},
{
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: 'Remove',
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openLinkRemoveDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/permission-edit-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/permission-edit-action-set.ts
index 4b6950ee24..3ae4513107 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/permission-edit-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/permission-edit-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import { CanReadIcon, CanManageIcon, CanWriteIcon } from 'components/icon/icon';
import { editPermissionLevel } from 'store/group-details-panel/group-details-panel-actions';
import { PermissionLevel } from 'models/permission';
@@ -10,21 +10,21 @@ import { PermissionLevel } from 'models/permission';
export const permissionEditActionSet: ContextMenuActionSet = [
[
{
- name: 'Read',
+ name: ContextMenuActionNames.READ,
icon: CanReadIcon,
execute: (dispatch, resources) => {
resources.forEach((resource) => dispatch<any>(editPermissionLevel(resource.uuid, PermissionLevel.CAN_READ)));
},
},
{
- name: 'Write',
+ name: ContextMenuActionNames.WRITE,
icon: CanWriteIcon,
execute: (dispatch, resources) => {
resources.forEach((resource) => dispatch<any>(editPermissionLevel(resource.uuid, PermissionLevel.CAN_WRITE)));
},
},
{
- name: 'Manage',
+ name: ContextMenuActionNames.MANAGE,
icon: CanManageIcon,
execute: (dispatch, resources) => {
resources.forEach((resource) => dispatch<any>(editPermissionLevel(resource.uuid, PermissionLevel.CAN_MANAGE)));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/process-resource-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/process-resource-action-set.ts
index 58cfb118b6..40d16e9c8e 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/process-resource-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/process-resource-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from "../context-menu-action-set";
+import { ContextMenuActionSet, ContextMenuActionNames } from "../context-menu-action-set";
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { toggleFavorite } from "store/favorites/favorites-actions";
import {
@@ -36,7 +36,7 @@ export const readOnlyProcessResourceActionSet: ContextMenuActionSet = [
[
{
component: ToggleFavoriteAction,
- name: "Add to Favorites",
+ name: ContextMenuActionNames.ADD_TO_FAVORITES,
execute: (dispatch, resources) => {
dispatch<any>(toggleFavorite(resources[0])).then(() => {
dispatch<any>(favoritePanelActions.REQUEST_ITEMS());
@@ -45,21 +45,21 @@ export const readOnlyProcessResourceActionSet: ContextMenuActionSet = [
},
{
icon: OpenIcon,
- name: "Open in new tab",
+ name: ContextMenuActionNames.OPEN_IN_NEW_TAB,
execute: (dispatch, resources) => {
dispatch<any>(openInNewTabAction(resources[0]));
},
},
{
icon: ReRunProcessIcon,
- name: "Copy and re-run process",
+ name: ContextMenuActionNames.COPY_AND_RERUN_PROCESS,
execute: (dispatch, resources) => {
dispatch<any>(openCopyProcessDialog(resources[0]));
},
},
{
icon: OutputIcon,
- name: "Outputs",
+ name: ContextMenuActionNames.OUTPUTS,
execute: (dispatch, resources) => {
if (resources[0]) {
dispatch<any>(navigateToOutput(resources[0]));
@@ -68,14 +68,14 @@ export const readOnlyProcessResourceActionSet: ContextMenuActionSet = [
},
{
icon: DetailsIcon,
- name: "View details",
+ name: ContextMenuActionNames.VIEW_DETAILS,
execute: dispatch => {
dispatch<any>(toggleDetailsPanel());
},
},
{
icon: AdvancedIcon,
- name: "API Details",
+ name: ContextMenuActionNames.API_DETAILS,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
@@ -88,27 +88,27 @@ export const processResourceActionSet: ContextMenuActionSet = [
...readOnlyProcessResourceActionSet.reduce((prev, next) => prev.concat(next), []),
{
icon: RenameIcon,
- name: "Edit process",
+ name: ContextMenuActionNames.EDIT_PROCESS,
execute: (dispatch, resources) => {
dispatch<any>(openProcessUpdateDialog(resources[0]));
},
},
{
icon: ShareIcon,
- name: "Share",
+ name: ContextMenuActionNames.SHARE,
execute: (dispatch, resources) => {
dispatch<any>(openSharingDialog(resources[0].uuid));
},
},
{
icon: MoveToIcon,
- name: "Move to",
+ name: ContextMenuActionNames.MOVE_TO,
execute: (dispatch, resources) => {
dispatch<any>(openMoveProcessDialog(resources[0]));
},
},
{
- name: "Remove",
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openRemoveProcessDialog(resources[0], resources.length));
@@ -120,7 +120,7 @@ export const processResourceActionSet: ContextMenuActionSet = [
const runningProcessOnlyActionSet: ContextMenuActionSet = [
[
{
- name: "CANCEL",
+ name: ContextMenuActionNames.CANCEL,
icon: StopIcon,
execute: (dispatch, resources) => {
dispatch<any>(cancelRunningWorkflow(resources[0].uuid));
@@ -134,7 +134,7 @@ export const processResourceAdminActionSet: ContextMenuActionSet = [
...processResourceActionSet.reduce((prev, next) => prev.concat(next), []),
{
component: TogglePublicFavoriteAction,
- name: "Add to public favorites",
+ name: ContextMenuActionNames.ADD_TO_PUBLIC_FAVORITES,
execute: (dispatch, resources) => {
dispatch<any>(togglePublicFavorite(resources[0])).then(() => {
dispatch<any>(publicFavoritePanelActions.REQUEST_ITEMS());
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/project-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/project-action-set.ts
index f1c4643507..1be6c8f13b 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/project-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/project-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from "../context-menu-action-set";
+import { ContextMenuActionSet, ContextMenuActionNames } from "../context-menu-action-set";
import { NewProjectIcon, RenameIcon, MoveToIcon, DetailsIcon, AdvancedIcon, OpenIcon, Link, FolderSharedIcon } from "components/icon/icon";
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { toggleFavorite } from "store/favorites/favorites-actions";
@@ -23,7 +23,7 @@ import { freezeProject, unfreezeProject } from "store/projects/project-lock-acti
export const toggleFavoriteAction = {
component: ToggleFavoriteAction,
- name: "Add to Favorites",
+ name: ContextMenuActionNames.ADD_TO_FAVORITES,
execute: (dispatch, resources) => {
dispatch(toggleFavorite(resources[0])).then(() => {
dispatch(favoritePanelActions.REQUEST_ITEMS());
@@ -33,7 +33,7 @@ export const toggleFavoriteAction = {
export const openInNewTabMenuAction = {
icon: OpenIcon,
- name: "Open in new tab",
+ name: ContextMenuActionNames.OPEN_IN_NEW_TAB,
execute: (dispatch, resources) => {
dispatch(openInNewTabAction(resources[0]));
},
@@ -41,7 +41,7 @@ export const openInNewTabMenuAction = {
export const copyToClipboardMenuAction = {
icon: Link,
- name: "Copy to clipboard",
+ name: ContextMenuActionNames.COPY_TO_CLIPBOARD,
execute: (dispatch, resources) => {
dispatch(copyToClipboardAction(resources));
},
@@ -49,7 +49,7 @@ export const copyToClipboardMenuAction = {
export const viewDetailsAction = {
icon: DetailsIcon,
- name: "View details",
+ name: ContextMenuActionNames.VIEW_DETAILS,
execute: dispatch => {
dispatch(toggleDetailsPanel());
},
@@ -57,7 +57,7 @@ export const viewDetailsAction = {
export const advancedAction = {
icon: AdvancedIcon,
- name: "API Details",
+ name: ContextMenuActionNames.API_DETAILS,
execute: (dispatch, resources) => {
dispatch(openAdvancedTabDialog(resources[0].uuid));
},
@@ -65,7 +65,7 @@ export const advancedAction = {
export const openWith3rdPartyClientAction = {
icon: FolderSharedIcon,
- name: "Open with 3rd party client",
+ name: ContextMenuActionNames.OPEN_WITH_3RD_PARTY_CLIENT,
execute: (dispatch, resources) => {
dispatch(openWebDavS3InfoDialog(resources[0].uuid));
},
@@ -73,7 +73,7 @@ export const openWith3rdPartyClientAction = {
export const editProjectAction = {
icon: RenameIcon,
- name: "Edit project",
+ name: ContextMenuActionNames.EDIT_PROJECT,
execute: (dispatch, resources) => {
dispatch(openProjectUpdateDialog(resources[0]));
},
@@ -81,7 +81,7 @@ export const editProjectAction = {
export const shareAction = {
icon: ShareIcon,
- name: "Share",
+ name: ContextMenuActionNames.SHARE,
execute: (dispatch, resources) => {
dispatch(openSharingDialog(resources[0].uuid));
},
@@ -89,7 +89,7 @@ export const shareAction = {
export const moveToAction = {
icon: MoveToIcon,
- name: "Move to",
+ name: ContextMenuActionNames.MOVE_TO,
execute: (dispatch, resource) => {
dispatch(openMoveProjectDialog(resource[0]));
},
@@ -97,7 +97,7 @@ export const moveToAction = {
export const toggleTrashAction = {
component: ToggleTrashAction,
- name: "Move to trash",
+ name: ContextMenuActionNames.MOVE_TO_TRASH,
execute: (dispatch, resources) => {
dispatch(toggleProjectTrashed(resources[0].uuid, resources[0].ownerUuid, resources[0].isTrashed!!, resources.length > 1));
},
@@ -105,7 +105,7 @@ export const toggleTrashAction = {
export const freezeProjectAction = {
component: ToggleLockAction,
- name: "Freeze Project",
+ name: ContextMenuActionNames.FREEZE_PROJECT,
execute: (dispatch, resources) => {
if (resources[0].isFrozen) {
dispatch(unfreezeProject(resources[0].uuid));
@@ -117,7 +117,7 @@ export const freezeProjectAction = {
export const newProjectAction: any = {
icon: NewProjectIcon,
- name: "New project",
+ name: ContextMenuActionNames.NEW_PROJECT,
execute: (dispatch, resources): void => {
dispatch(openProjectCreateDialog(resources[0].uuid));
},
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/project-admin-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/project-admin-action-set.ts
index 53df7b370e..937b43eb09 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/project-admin-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/project-admin-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from "../context-menu-action-set";
+import { ContextMenuActionSet, ContextMenuActionNames } from "../context-menu-action-set";
import { TogglePublicFavoriteAction } from "views-components/context-menu/actions/public-favorite-action";
import { togglePublicFavorite } from "store/public-favorites/public-favorites-actions";
import { publicFavoritePanelActions } from "store/public-favorites-panel/public-favorites-action";
@@ -24,7 +24,7 @@ import {
export const togglePublicFavoriteAction = {
component: TogglePublicFavoriteAction,
- name: "Add to public favorites",
+ name: ContextMenuActionNames.ADD_TO_PUBLIC_FAVORITES,
execute: (dispatch, resources) => {
dispatch(togglePublicFavorite(resources[0])).then(() => {
dispatch(publicFavoritePanelActions.REQUEST_ITEMS());
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/repository-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/repository-action-set.ts
index cbdcd00428..20edbe4a88 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/repository-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/repository-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import { AdvancedIcon, RemoveIcon, ShareIcon, AttributesIcon } from 'components/icon/icon';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
import { openRepositoryAttributes, openRemoveRepositoryDialog } from 'store/repositories/repositories-actions';
@@ -11,28 +11,28 @@ import { openSharingDialog } from 'store/sharing-dialog/sharing-dialog-actions';
export const repositoryActionSet: ContextMenuActionSet = [
[
{
- name: 'Attributes',
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openRepositoryAttributes(resources[0].uuid));
},
},
{
- name: 'Share',
+ name: ContextMenuActionNames.SHARE,
icon: ShareIcon,
execute: (dispatch, resources) => {
dispatch<any>(openSharingDialog(resources[0].uuid));
},
},
{
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: 'Remove',
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openRemoveRepositoryDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/resource-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/resource-action-set.ts
index 6c33b3ccd2..6909df8427 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/resource-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/resource-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from '../context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from '../context-menu-action-set';
import { ToggleFavoriteAction } from '../actions/favorite-action';
import { toggleFavorite } from 'store/favorites/favorites-actions';
@@ -10,7 +10,7 @@ export const resourceActionSet: ContextMenuActionSet = [
[
{
component: ToggleFavoriteAction,
- name: 'Add to Favorites',
+ name: ContextMenuActionNames.ADD_TO_FAVORITES,
execute: (dispatch, resources) => {
resources.forEach((resource) => dispatch<any>(toggleFavorite(resource)));
},
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/root-project-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/root-project-action-set.ts
index a779d1eb29..8fcdbf0af3 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/root-project-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/root-project-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from '../context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from '../context-menu-action-set';
import { openCollectionCreateDialog } from 'store/collections/collection-create-actions';
import { NewProjectIcon, CollectionIcon } from 'components/icon/icon';
import { openProjectCreateDialog } from 'store/projects/project-create-actions';
@@ -11,14 +11,14 @@ export const rootProjectActionSet: ContextMenuActionSet = [
[
{
icon: NewProjectIcon,
- name: 'New project',
+ name: ContextMenuActionNames.NEW_PROJECT,
execute: (dispatch, resources) => {
dispatch<any>(openProjectCreateDialog(resources[0].uuid));
},
},
{
icon: CollectionIcon,
- name: 'New Collection',
+ name: ContextMenuActionNames.NEW_COLLECTION,
execute: (dispatch, resources) => {
dispatch<any>(openCollectionCreateDialog(resources[0].uuid));
},
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/search-results-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/search-results-action-set.ts
index dcc9eae207..54315d5877 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/search-results-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/search-results-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from '../context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from '../context-menu-action-set';
import { DetailsIcon, AdvancedIcon, OpenIcon, Link } from 'components/icon/icon';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
import { toggleDetailsPanel } from 'store/details-panel/details-panel-action';
@@ -12,28 +12,28 @@ export const searchResultsActionSet: ContextMenuActionSet = [
[
{
icon: OpenIcon,
- name: 'Open in new tab',
+ name: ContextMenuActionNames.OPEN_IN_NEW_TAB,
execute: (dispatch, resources) => {
resources.forEach((resource) => dispatch<any>(openInNewTabAction(resource)));
},
},
{
icon: Link,
- name: 'Copy to clipboard',
+ name: ContextMenuActionNames.COPY_TO_CLIPBOARD,
execute: (dispatch, resources) => {
dispatch<any>(copyToClipboardAction(resources));
},
},
{
icon: DetailsIcon,
- name: 'View details',
+ name: ContextMenuActionNames.VIEW_DETAILS,
execute: (dispatch) => {
dispatch<any>(toggleDetailsPanel());
},
},
{
icon: AdvancedIcon,
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/ssh-key-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/ssh-key-action-set.ts
index c31e1681a4..2a64f17cd2 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/ssh-key-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/ssh-key-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import { AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon';
import { openSshKeyRemoveDialog, openSshKeyAttributesDialog } from 'store/auth/auth-action-ssh';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
@@ -10,21 +10,21 @@ import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
export const sshKeyActionSet: ContextMenuActionSet = [
[
{
- name: 'Attributes',
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openSshKeyAttributesDialog(resources[0].uuid));
},
},
{
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: 'Remove',
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openSshKeyRemoveDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/trash-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/trash-action-set.ts
index dfcb4f6c95..8a27904569 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/trash-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/trash-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from '../context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from '../context-menu-action-set';
import { ToggleTrashAction } from 'views-components/context-menu/actions/trash-action';
import { toggleTrashed } from 'store/trash/trash-actions';
@@ -10,7 +10,7 @@ export const trashActionSet: ContextMenuActionSet = [
[
{
component: ToggleTrashAction,
- name: 'Move to Trash',
+ name: ContextMenuActionNames.MOVE_TO_TRASH,
execute: (dispatch, resources) => {
resources.forEach((resource) => dispatch<any>(toggleTrashed(resource.kind, resource.uuid, resource.ownerUuid, resource.isTrashed!!)));
},
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts
index 3e8f0cb647..ea66deb683 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from '../context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from '../context-menu-action-set';
import { DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RestoreFromTrashIcon } from 'components/icon/icon';
import { toggleCollectionTrashed } from 'store/trash/trash-actions';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
@@ -12,28 +12,28 @@ export const trashedCollectionActionSet: ContextMenuActionSet = [
[
{
icon: DetailsIcon,
- name: 'View details',
+ name: ContextMenuActionNames.VIEW_DETAILS,
execute: (dispatch) => {
dispatch<any>(toggleDetailsPanel());
},
},
{
icon: ProvenanceGraphIcon,
- name: 'Provenance graph',
+ name: ContextMenuActionNames.PROVENANCE_GRAPH,
execute: (dispatch, resource) => {
// add code
},
},
{
icon: AdvancedIcon,
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
icon: RestoreFromTrashIcon,
- name: 'Restore',
+ name: ContextMenuActionNames.RESTORE,
execute: (dispatch, resources) => {
resources.forEach((resource) => dispatch<any>(toggleCollectionTrashed(resource.uuid, true)));
},
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/user-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/user-action-set.ts
index 0108ff7e50..953ed6e9c9 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/user-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/user-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import {
AdvancedIcon,
ProjectIcon,
@@ -29,28 +29,28 @@ import {
export const userActionSet: ContextMenuActionSet = [
[
{
- name: 'Attributes',
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openUserAttributes(resources[0].uuid));
},
},
{
- name: 'Project',
+ name: ContextMenuActionNames.HOME_PROJECT,
icon: ProjectIcon,
execute: (dispatch, resources) => {
dispatch<any>(openUserProjects(resources[0].uuid));
},
},
{
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: 'Account Settings',
+ name: ContextMenuActionNames.ACCOUNT_SETTINGS,
icon: UserPanelIcon,
execute: (dispatch, resources) => {
dispatch<any>(navigateToUserProfile(resources[0].uuid));
@@ -60,7 +60,7 @@ export const userActionSet: ContextMenuActionSet = [
],
[
{
- name: 'Activate User',
+ name: ContextMenuActionNames.ACTIVATE_USER,
icon: ActiveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openActivateDialog(resources[0].uuid));
@@ -68,7 +68,7 @@ export const userActionSet: ContextMenuActionSet = [
filters: [isAdmin, canActivateUser],
},
{
- name: 'Setup User',
+ name: ContextMenuActionNames.SETUP_USER,
icon: AdminMenuIcon,
execute: (dispatch, resources) => {
dispatch<any>(openSetupDialog(resources[0].uuid));
@@ -76,7 +76,7 @@ export const userActionSet: ContextMenuActionSet = [
filters: [isAdmin, canSetupUser],
},
{
- name: 'Deactivate User',
+ name: ContextMenuActionNames.DEACTIVATE_USER,
icon: DeactivateUserIcon,
execute: (dispatch, resources) => {
dispatch<any>(openDeactivateDialog(resources[0].uuid));
@@ -84,7 +84,7 @@ export const userActionSet: ContextMenuActionSet = [
filters: [isAdmin, canDeactivateUser],
},
{
- name: 'Login As User',
+ name: ContextMenuActionNames.LOGIN_AS_USER,
icon: LoginAsIcon,
execute: (dispatch, resources) => {
dispatch<any>(loginAs(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/virtual-machine-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/virtual-machine-action-set.ts
index a26cbe1368..11d94ccc1d 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/virtual-machine-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/virtual-machine-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
import { AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon';
import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
import { openVirtualMachineAttributes, openRemoveVirtualMachineDialog } from 'store/virtual-machines/virtual-machines-actions';
@@ -10,21 +10,21 @@ import { openVirtualMachineAttributes, openRemoveVirtualMachineDialog } from 'st
export const virtualMachineActionSet: ContextMenuActionSet = [
[
{
- name: 'Attributes',
+ name: ContextMenuActionNames.ATTRIBUTES,
icon: AttributesIcon,
execute: (dispatch, resources) => {
dispatch<any>(openVirtualMachineAttributes(resources[0].uuid));
},
},
{
- name: 'API Details',
+ name: ContextMenuActionNames.API_DETAILS,
icon: AdvancedIcon,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
- name: 'Remove',
+ name: ContextMenuActionNames.REMOVE,
icon: RemoveIcon,
execute: (dispatch, resources) => {
dispatch<any>(openRemoveVirtualMachineDialog(resources[0].uuid));
diff --git a/services/workbench2/src/views-components/context-menu/action-sets/workflow-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/workflow-action-set.ts
index 4a1460bfc9..e0787f94ee 100644
--- a/services/workbench2/src/views-components/context-menu/action-sets/workflow-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/action-sets/workflow-action-set.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set";
+import { ContextMenuActionSet, ContextMenuActionNames } from "views-components/context-menu/context-menu-action-set";
import { openRunProcess, deleteWorkflow } from "store/workflow-panel/workflow-panel-actions";
import { DetailsIcon, AdvancedIcon, OpenIcon, Link, StartIcon, TrashIcon } from "components/icon/icon";
import { copyToClipboardAction, openInNewTabAction } from "store/open-in-new-tab/open-in-new-tab.actions";
@@ -13,35 +13,35 @@ export const readOnlyWorkflowActionSet: ContextMenuActionSet = [
[
{
icon: OpenIcon,
- name: "Open in new tab",
+ name: ContextMenuActionNames.OPEN_IN_NEW_TAB,
execute: (dispatch, resources) => {
dispatch<any>(openInNewTabAction(resources[0]));
},
},
{
icon: Link,
- name: "Copy to clipboard",
+ name: ContextMenuActionNames.COPY_TO_CLIPBOARD,
execute: (dispatch, resources) => {
dispatch<any>(copyToClipboardAction(resources));
},
},
{
icon: DetailsIcon,
- name: "View details",
+ name: ContextMenuActionNames.VIEW_DETAILS,
execute: dispatch => {
dispatch<any>(toggleDetailsPanel());
},
},
{
icon: AdvancedIcon,
- name: "API Details",
+ name: ContextMenuActionNames.API_DETAILS,
execute: (dispatch, resources) => {
dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
{
icon: StartIcon,
- name: "Run Workflow",
+ name: ContextMenuActionNames.RUN_WORKFLOW,
execute: (dispatch, resources) => {
dispatch<any>(openRunProcess(resources[0].uuid, resources[0].ownerUuid, resources[0].name));
},
@@ -54,7 +54,7 @@ export const workflowActionSet: ContextMenuActionSet = [
...readOnlyWorkflowActionSet[0],
{
icon: TrashIcon,
- name: "Delete Workflow",
+ name: ContextMenuActionNames.DELETE_WORKFLOW,
execute: (dispatch, resources) => {
dispatch<any>(deleteWorkflow(resources[0].uuid, resources[0].ownerUuid));
},
diff --git a/services/workbench2/src/views-components/context-menu/context-menu-action-set.ts b/services/workbench2/src/views-components/context-menu/context-menu-action-set.ts
index 3bda751aaf..4468ba2521 100644
--- a/services/workbench2/src/views-components/context-menu/context-menu-action-set.ts
+++ b/services/workbench2/src/views-components/context-menu/context-menu-action-set.ts
@@ -9,7 +9,7 @@ import { ContextMenuResource } from "store/context-menu/context-menu-actions";
export enum ContextMenuActionNames {
ACCOUNT_SETTINGS = 'Account settings',
ACTIVATE_USER = 'Activate user',
- ADD_TO_FAVORITES = 'Add to Favorites',
+ ADD_TO_FAVORITES = 'Add to favorites',
ADD_TO_PUBLIC_FAVORITES = 'Add to public favorites',
ATTRIBUTES = 'Attributes',
API_DETAILS = 'API Details',
@@ -27,7 +27,8 @@ export enum ContextMenuActionNames {
EDIT_COLLECTION = 'Edit collection',
EDIT_PROCESS = 'Edit process',
EDIT_PROJECT = 'Edit project',
- FREEZE_PROJECT = 'Freeze Project',
+ FREEZE_PROJECT = 'Freeze project',
+ HOME_PROJECT = 'Home project',
LOGIN_AS_USER = 'Login as user',
MAKE_A_COPY = 'Make a copy',
MANAGE = 'Manage',
@@ -38,16 +39,17 @@ export enum ContextMenuActionNames {
MOVE_SELECTED_INTO_SEPARATE_COLLECTIONS = 'Move selected into separate collections',
MOVE_TO = 'Move to',
MOVE_TO_TRASH = 'Move to trash',
- NEW_COLLECTION = 'New Collection',
+ NEW_COLLECTION = 'New collection',
NEW_PROJECT = 'New project',
OPEN_IN_NEW_TAB = 'Open in new tab',
- OPEN_W_3RD_PARTY_CLIENT = 'Open with 3rd party client',
+ OPEN_WITH_3RD_PARTY_CLIENT = 'Open with 3rd party client',
OUTPUTS = 'Outputs',
PROVENANCE_GRAPH = 'Provenance graph',
READ = 'Read',
REMOVE = 'Remove',
REMOVE_SELECTED = 'Remove selected',
RENAME = 'Rename',
+ RESTORE = 'Restore',
RESTORE_VERSION = 'Restore version',
RUN_WORKFLOW = 'Run Workflow',
SELECT_ALL = 'Select all',
diff --git a/services/workbench2/src/views-components/multiselect-toolbar/ms-collection-action-set.ts b/services/workbench2/src/views-components/multiselect-toolbar/ms-collection-action-set.ts
index a8a8f45748..760260892c 100644
--- a/services/workbench2/src/views-components/multiselect-toolbar/ms-collection-action-set.ts
+++ b/services/workbench2/src/views-components/multiselect-toolbar/ms-collection-action-set.ts
@@ -14,7 +14,7 @@ import { openCollectionUpdateDialog } from "store/collections/collection-update-
import { copyToClipboardAction } from "store/open-in-new-tab/open-in-new-tab.actions";
import { openWebDavS3InfoDialog } from "store/collections/collection-info-actions";
-const { MAKE_A_COPY, MOVE_TO, MOVE_TO_TRASH, EDIT_COLLECTION, OPEN_IN_NEW_TAB, OPEN_W_3RD_PARTY_CLIENT, COPY_TO_CLIPBOARD, VIEW_DETAILS, API_DETAILS, ADD_TO_FAVORITES, SHARE} = MultiSelectMenuActionNames;
+const { MAKE_A_COPY, MOVE_TO, MOVE_TO_TRASH, EDIT_COLLECTION, OPEN_IN_NEW_TAB, OPEN_WITH_3RD_PARTY_CLIENT, COPY_TO_CLIPBOARD, VIEW_DETAILS, API_DETAILS, ADD_TO_FAVORITES, SHARE} = MultiSelectMenuActionNames;
const msCopyCollection: MultiSelectMenuAction = {
name: MAKE_A_COPY,
@@ -68,7 +68,7 @@ const msCopyToClipboardMenuAction: MultiSelectMenuAction = {
};
const msOpenWith3rdPartyClientAction: MultiSelectMenuAction = {
- name: OPEN_W_3RD_PARTY_CLIENT,
+ name: OPEN_WITH_3RD_PARTY_CLIENT,
icon: FolderSharedIcon,
hasAlts: false,
isForMulti: false,
@@ -89,6 +89,6 @@ export const msCollectionActionSet: MultiSelectMenuActionSet = [
],
];
-export const msReadOnlyCollectionActionFilter = new Set([OPEN_IN_NEW_TAB, COPY_TO_CLIPBOARD, MAKE_A_COPY, VIEW_DETAILS, API_DETAILS, ADD_TO_FAVORITES, OPEN_W_3RD_PARTY_CLIENT]);
-export const msCommonCollectionActionFilter = new Set([OPEN_IN_NEW_TAB, COPY_TO_CLIPBOARD, MAKE_A_COPY, VIEW_DETAILS, API_DETAILS, OPEN_W_3RD_PARTY_CLIENT, EDIT_COLLECTION, SHARE, MOVE_TO, ADD_TO_FAVORITES, MOVE_TO_TRASH])
-export const msOldCollectionActionFilter = new Set([OPEN_IN_NEW_TAB, COPY_TO_CLIPBOARD, MAKE_A_COPY, VIEW_DETAILS, API_DETAILS, OPEN_W_3RD_PARTY_CLIENT, EDIT_COLLECTION, SHARE, MOVE_TO, ADD_TO_FAVORITES, MOVE_TO_TRASH])
\ No newline at end of file
+export const msReadOnlyCollectionActionFilter = new Set([OPEN_IN_NEW_TAB, COPY_TO_CLIPBOARD, MAKE_A_COPY, VIEW_DETAILS, API_DETAILS, ADD_TO_FAVORITES, OPEN_WITH_3RD_PARTY_CLIENT]);
+export const msCommonCollectionActionFilter = new Set([OPEN_IN_NEW_TAB, COPY_TO_CLIPBOARD, MAKE_A_COPY, VIEW_DETAILS, API_DETAILS, OPEN_WITH_3RD_PARTY_CLIENT, EDIT_COLLECTION, SHARE, MOVE_TO, ADD_TO_FAVORITES, MOVE_TO_TRASH])
+export const msOldCollectionActionFilter = new Set([OPEN_IN_NEW_TAB, COPY_TO_CLIPBOARD, MAKE_A_COPY, VIEW_DETAILS, API_DETAILS, OPEN_WITH_3RD_PARTY_CLIENT, EDIT_COLLECTION, SHARE, MOVE_TO, ADD_TO_FAVORITES, MOVE_TO_TRASH])
\ No newline at end of file
diff --git a/services/workbench2/src/views-components/multiselect-toolbar/ms-menu-actions.ts b/services/workbench2/src/views-components/multiselect-toolbar/ms-menu-actions.ts
index 91e96d9bfb..2facdcd4ce 100644
--- a/services/workbench2/src/views-components/multiselect-toolbar/ms-menu-actions.ts
+++ b/services/workbench2/src/views-components/multiselect-toolbar/ms-menu-actions.ts
@@ -36,7 +36,7 @@ export enum MultiSelectMenuActionNames {
MOVE_TO = 'Move to',
NEW_PROJECT = 'New project',
OPEN_IN_NEW_TAB = 'Open in new tab',
- OPEN_W_3RD_PARTY_CLIENT = 'Open with 3rd party client',
+ OPEN_WITH_3RD_PARTY_CLIENT = 'Open with 3rd party client',
OUTPUTS = 'Outputs',
REMOVE = 'Remove',
RUN_WORKFLOW = 'Run Workflow',
diff --git a/services/workbench2/src/views-components/multiselect-toolbar/ms-project-action-set.ts b/services/workbench2/src/views-components/multiselect-toolbar/ms-project-action-set.ts
index ee1ea1d179..c7a47aba5a 100644
--- a/services/workbench2/src/views-components/multiselect-toolbar/ms-project-action-set.ts
+++ b/services/workbench2/src/views-components/multiselect-toolbar/ms-project-action-set.ts
@@ -28,7 +28,7 @@ const {
COPY_TO_CLIPBOARD,
VIEW_DETAILS,
API_DETAILS,
- OPEN_W_3RD_PARTY_CLIENT,
+ OPEN_WITH_3RD_PARTY_CLIENT,
EDIT_PROJECT,
SHARE,
MOVE_TO,
@@ -68,7 +68,7 @@ const msMoveToAction: MultiSelectMenuAction = {
};
const msOpenWith3rdPartyClientAction: MultiSelectMenuAction = {
- name: OPEN_W_3RD_PARTY_CLIENT,
+ name: OPEN_WITH_3RD_PARTY_CLIENT,
icon: FolderSharedIcon,
hasAlts: false,
isForMulti: false,
@@ -146,13 +146,13 @@ export const msCommonProjectActionFilter = new Set<string>([
MOVE_TO,
NEW_PROJECT,
OPEN_IN_NEW_TAB,
- OPEN_W_3RD_PARTY_CLIENT,
+ OPEN_WITH_3RD_PARTY_CLIENT,
SHARE,
VIEW_DETAILS,
]);
-export const msReadOnlyProjectActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_W_3RD_PARTY_CLIENT, VIEW_DETAILS,]);
-export const msFrozenProjectActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_W_3RD_PARTY_CLIENT, VIEW_DETAILS, SHARE, FREEZE_PROJECT])
-export const msAdminFrozenProjectActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_W_3RD_PARTY_CLIENT, VIEW_DETAILS, SHARE, FREEZE_PROJECT, ADD_TO_PUBLIC_FAVORITES])
+export const msReadOnlyProjectActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_WITH_3RD_PARTY_CLIENT, VIEW_DETAILS,]);
+export const msFrozenProjectActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_WITH_3RD_PARTY_CLIENT, VIEW_DETAILS, SHARE, FREEZE_PROJECT])
+export const msAdminFrozenProjectActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_WITH_3RD_PARTY_CLIENT, VIEW_DETAILS, SHARE, FREEZE_PROJECT, ADD_TO_PUBLIC_FAVORITES])
-export const msFilterGroupActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_W_3RD_PARTY_CLIENT, VIEW_DETAILS, SHARE, MOVE_TO_TRASH, EDIT_PROJECT, MOVE_TO])
-export const msAdminFilterGroupActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_W_3RD_PARTY_CLIENT, VIEW_DETAILS, SHARE, MOVE_TO_TRASH, EDIT_PROJECT, MOVE_TO, ADD_TO_PUBLIC_FAVORITES])
\ No newline at end of file
+export const msFilterGroupActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_WITH_3RD_PARTY_CLIENT, VIEW_DETAILS, SHARE, MOVE_TO_TRASH, EDIT_PROJECT, MOVE_TO])
+export const msAdminFilterGroupActionFilter = new Set<string>([ADD_TO_FAVORITES, API_DETAILS, COPY_TO_CLIPBOARD, OPEN_IN_NEW_TAB, OPEN_WITH_3RD_PARTY_CLIENT, VIEW_DETAILS, SHARE, MOVE_TO_TRASH, EDIT_PROJECT, MOVE_TO, ADD_TO_PUBLIC_FAVORITES])
\ No newline at end of file
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list