import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
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 { openSharingDialog } from '~/store/sharing-dialog/sharing-dialog-actions';
+ import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
export const collectionActionSet: ContextMenuActionSet = [[
{
{
icon: ShareIcon,
name: "Share",
- execute: (dispatch, resource) => {
- // add code
+ execute: (dispatch, { uuid }) => {
+ dispatch<any>(openSharingDialog(uuid));
}
},
{
execute: (dispatch, resource) => {
dispatch<any>(openCollectionCopyDialog(resource));
}
+
},
{
icon: DetailsIcon,
name: "View details",
- execute: dispatch => dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL())
+ execute: dispatch => {
+ dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL());
+ }
},
{
icon: ProvenanceGraphIcon,
icon: AdvancedIcon,
name: "Advanced",
execute: (dispatch, resource) => {
- // add code
+ dispatch<any>(openAdvancedTabDialog(resource.uuid));
}
},
{
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));
}
},
{
icon: MoveToIcon,
name: "Move to",
- execute: (dispatch, resource) => dispatch<any>(openMoveCollectionDialog(resource))
+ execute: (dispatch, resource) => {
+ dispatch<any>(openMoveCollectionDialog(resource));
+ }
},
{
component: ToggleFavoriteAction,
name: "Copy to project",
execute: (dispatch, resource) => {
dispatch<any>(openCollectionCopyDialog(resource));
- },
+ }
},
{
icon: DetailsIcon,
name: "View details",
- execute: dispatch => dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL())
+ execute: dispatch => {
+ dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL());
+ }
},
{
icon: RemoveIcon,
//
// SPDX-License-Identifier: AGPL-3.0
- import { ContextMenuActionSet } from "../context-menu-action-set";
- import { ToggleFavoriteAction } from "../actions/favorite-action";
+ import { ContextMenuActionSet } from "~/views-components/context-menu/context-menu-action-set";
+ import { ToggleFavoriteAction } from "~/views-components/context-menu/actions/favorite-action";
import { toggleFavorite } from "~/store/favorites/favorites-actions";
import {
RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, ProvenanceGraphIcon,
import { openMoveProcessDialog } from '~/store/processes/process-move-actions';
import { openProcessUpdateDialog } from "~/store/processes/process-update-actions";
import { openCopyProcessDialog } from '~/store/processes/process-copy-actions';
- import { openProcessCommandDialog } from '../../../store/processes/process-command-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";
+ import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
export const processActionSet: ContextMenuActionSet = [[
{
icon: RenameIcon,
name: "Edit process",
- execute: (dispatch, resource) => dispatch<any>(openProcessUpdateDialog(resource))
+ execute: (dispatch, resource) => {
+ dispatch<any>(openProcessUpdateDialog(resource));
+ }
},
{
icon: ShareIcon,
name: "Share",
- execute: (dispatch, resource) => {
- // add code
+ execute: (dispatch, { uuid }) => {
+ dispatch<any>(openSharingDialog(uuid));
}
},
{
icon: MoveToIcon,
name: "Move to",
- execute: (dispatch, resource) => dispatch<any>(openMoveProcessDialog(resource))
+ execute: (dispatch, resource) => {
+ dispatch<any>(openMoveProcessDialog(resource));
+ }
},
{
component: ToggleFavoriteAction,
{
icon: CopyIcon,
name: "Copy to project",
- execute: (dispatch, resource) => dispatch<any>(openCopyProcessDialog(resource))
+ execute: (dispatch, resource) => {
+ dispatch<any>(openCopyProcessDialog(resource));
+ }
},
{
icon: ReRunProcessIcon,
{
icon: DetailsIcon,
name: "View details",
- execute: dispatch => dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL())
+ execute: dispatch => {
+ dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL());
+ }
},
{
icon: LogIcon,
icon: AdvancedIcon,
name: "Advanced",
execute: (dispatch, resource) => {
- // add code
+ dispatch<any>(openAdvancedTabDialog(resource.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: RenameIcon,
name: "Edit process",
- execute: (dispatch, resource) => dispatch<any>(openProcessUpdateDialog(resource))
+ execute: (dispatch, resource) => {
+ dispatch<any>(openProcessUpdateDialog(resource));
+ }
},
{
icon: ShareIcon,
name: "Share",
- execute: (dispatch, resource) => {
- // add code
+ execute: (dispatch, { uuid }) => {
+ dispatch<any>(openSharingDialog(uuid));
}
},
{
icon: MoveToIcon,
name: "Move to",
- execute: (dispatch, resource) => dispatch<any>(openMoveProcessDialog(resource))
+ execute: (dispatch, resource) => {
+ dispatch<any>(openMoveProcessDialog(resource));
+ }
},
{
component: ToggleFavoriteAction,
{
icon: CopyIcon,
name: "Copy to project",
- execute: (dispatch, resource) => dispatch<any>(openCopyProcessDialog(resource))
+ execute: (dispatch, resource) => {
+ dispatch<any>(openCopyProcessDialog(resource));
+ }
},
{
icon: DetailsIcon,
name: "View details",
- execute: dispatch => dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL())
+ execute: dispatch => {
+ dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL());
+ }
},
{
icon: RemoveIcon,
// SPDX-License-Identifier: AGPL-3.0
import { ContextMenuActionSet } from "../context-menu-action-set";
- import { NewProjectIcon, RenameIcon, CopyIcon, MoveToIcon, DetailsIcon } from '~/components/icon/icon';
+ import { NewProjectIcon, RenameIcon, CopyIcon, MoveToIcon, DetailsIcon, AdvancedIcon } from '~/components/icon/icon';
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { toggleFavorite } from "~/store/favorites/favorites-actions";
import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
import { toggleProjectTrashed } from "~/store/trash/trash-actions";
import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
+import { ShareIcon } from '~/components/icon/icon';
+import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions";
+ import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
export const projectActionSet: ContextMenuActionSet = [[
{
dispatch<any>(openProjectUpdateDialog(resource));
}
},
+ {
+ icon: ShareIcon,
+ name: "Share",
+ execute: (dispatch, { uuid }) => {
+ dispatch<any>(openSharingDialog(uuid));
+ }
+ },
{
component: ToggleFavoriteAction,
execute: (dispatch, resource) => {
{
icon: MoveToIcon,
name: "Move to",
- execute: (dispatch, resource) => dispatch<any>(openMoveProjectDialog(resource))
+ execute: (dispatch, resource) => {
+ dispatch<any>(openMoveProjectDialog(resource));
+ }
},
{
icon: CopyIcon,
{
icon: DetailsIcon,
name: "View details",
- execute: dispatch => dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL())
- }
+ execute: dispatch => {
+ dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL());
+ }
+ },
+ {
+ icon: AdvancedIcon,
+ name: "Advanced",
+ execute: (dispatch, resource) => {
+ dispatch<any>(openAdvancedTabDialog(resource.uuid));
+ }
+ },
]];
import SplitterLayout from 'react-splitter-layout';
import { WorkflowPanel } from '~/views/workflow-panel/workflow-panel';
import { SearchResultsPanel } from '~/views/search-results-panel/search-results-panel';
- import { HomeTreePicker } from '~/views-components/projects-tree-picker/home-tree-picker';
- import { SharedTreePicker } from '~/views-components/projects-tree-picker/shared-tree-picker';
- import { FavoritesTreePicker } from '../../views-components/projects-tree-picker/favorites-tree-picker';
- import { ProjectsTreePicker } from '~/views-components/projects-tree-picker/projects-tree-picker';
- import { Chips } from '~/components/chips/chips';
- import { ChipsInput } from '../../components/chips-input/chips-input';
+import { SharingDialog } from '~/views-components/sharing-dialog/sharing-dialog';
+ import { AdvancedTabDialog } from '~/views-components/advanced-tab-dialog/advanced-tab-dialog';
type CssRules = 'root' | 'container' | 'splitter' | 'asidePanel' | 'contentWrapper' | 'content';
<Grid item>
<DetailsPanel />
</Grid>
+ <AdvancedTabDialog />
<ContextMenu />
<CopyCollectionDialog />
<CopyProcessDialog />
<ProcessCommandDialog />
<RenameFileDialog />
<RichTextEditorDialog />
+ <SharingDialog />
<Snackbar />
<UpdateCollectionDialog />
<UpdateProcessDialog />