projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '14528_table_view_and_actions'
[arvados-workbench2.git]
/
src
/
views-components
/
context-menu
/
action-sets
/
collection-resource-action-set.ts
diff --git
a/src/views-components/context-menu/action-sets/collection-resource-action-set.ts
b/src/views-components/context-menu/action-sets/collection-resource-action-set.ts
index 1e2ac04c6a3368433d01529bead546785983814d..7730b1453812f730aab765254275298ab14e5bda 100644
(file)
--- a/
src/views-components/context-menu/action-sets/collection-resource-action-set.ts
+++ b/
src/views-components/context-menu/action-sets/collection-resource-action-set.ts
@@
-6,7
+6,7
@@
import { ContextMenuActionSet } from "../context-menu-action-set";
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
import { toggleFavorite } from "~/store/favorites/favorites-actions";
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
import { toggleFavorite } from "~/store/favorites/favorites-actions";
-import { RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, RemoveIcon
} from "~/components/icon/icon"
;
+import { RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, RemoveIcon
, AdvancedIcon } from '~/components/icon/icon'
;
import { openCollectionUpdateDialog } from "~/store/collections/collection-update-actions";
import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
import { openMoveCollectionDialog } from '~/store/collections/collection-move-actions';
import { openCollectionUpdateDialog } from "~/store/collections/collection-update-actions";
import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
import { openMoveCollectionDialog } from '~/store/collections/collection-move-actions';
@@
-14,6
+14,8
@@
import { openCollectionCopyDialog } from '~/store/collections/collection-copy-ac
import { toggleCollectionTrashed } from "~/store/trash/trash-actions";
import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions";
import { toggleCollectionTrashed } from "~/store/trash/trash-actions";
import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions";
+import { openAdvancedTabDialog } from '~/store/advanced-tab/advanced-tab';
+import { toggleDetailsPanel } from '~/store/details-panel/details-panel-action';
export const collectionResourceActionSet: ContextMenuActionSet = [[
{
export const collectionResourceActionSet: ContextMenuActionSet = [[
{
@@
-62,7
+64,14
@@
export const collectionResourceActionSet: ContextMenuActionSet = [[
icon: DetailsIcon,
name: "View details",
execute: dispatch => {
icon: DetailsIcon,
name: "View details",
execute: dispatch => {
- dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL());
+ dispatch<any>(toggleDetailsPanel());
+ }
+ },
+ {
+ icon: AdvancedIcon,
+ name: "Advanced",
+ execute: (dispatch, resource) => {
+ dispatch<any>(openAdvancedTabDialog(resource.uuid));
}
}
// {
}
}
// {