import { openCollectionCopyDialog } from '~/store/collections/collection-copy-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";
export const collectionResourceActionSet: ContextMenuActionSet = [[
{
{
icon: ShareIcon,
name: "Share",
- execute: (dispatch, resource) => {
- // add code
+ execute: (dispatch, { uuid }) => {
+ dispatch<any>(openSharingDialog(uuid));
}
},
{
import { openCopyProcessDialog } from '~/store/processes/process-copy-actions';
import { openProcessCommandDialog } from '../../../store/processes/process-command-actions';
import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
+import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions";
export const processActionSet: ContextMenuActionSet = [[
{
{
icon: ShareIcon,
name: "Share",
- execute: (dispatch, resource) => {
- // add code
+ execute: (dispatch, { uuid }) => {
+ dispatch<any>(openSharingDialog(uuid));
}
},
{
import { openProcessUpdateDialog } from "~/store/processes/process-update-actions";
import { openCopyProcessDialog } from '~/store/processes/process-copy-actions';
import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
+import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions";
export const processResourceActionSet: ContextMenuActionSet = [[
{
{
icon: ShareIcon,
name: "Share",
- execute: (dispatch, resource) => {
- // add code
+ execute: (dispatch, { uuid }) => {
+ dispatch<any>(openSharingDialog(uuid));
}
},
{