[
{
component: ToggleFavoriteAction,
- execute: (dispatch, resource) => {
- dispatch<any>(toggleFavorite(resource)).then(() => {
+ execute: (dispatch, resources) => {
+ dispatch<any>(toggleFavorite(resources[0])).then(() => {
dispatch<any>(favoritePanelActions.REQUEST_ITEMS());
});
},
{
icon: OpenIcon,
name: "Open in new tab",
- execute: (dispatch, resource) => {
- dispatch<any>(openInNewTabAction(resource));
+ execute: (dispatch, resources) => {
+ dispatch<any>(openInNewTabAction(resources[0]));
},
},
{
icon: ReRunProcessIcon,
name: "Copy and re-run process",
- execute: (dispatch, resource) => {
- dispatch<any>(openCopyProcessDialog(resource));
+ execute: (dispatch, resources) => {
+ dispatch<any>(openCopyProcessDialog(resources[0]));
},
},
{
icon: OutputIcon,
name: "Outputs",
- execute: (dispatch, resource) => {
- if (resource.outputUuid) {
- dispatch<any>(navigateToOutput(resource.outputUuid));
+ execute: (dispatch, resources) => {
+ if (resources[0].outputUuid) {
+ dispatch<any>(navigateToOutput(resources[0].outputUuid));
}
},
},
{
icon: AdvancedIcon,
name: "API Details",
- execute: (dispatch, resource) => {
- dispatch<any>(openAdvancedTabDialog(resource.uuid));
+ execute: (dispatch, resources) => {
+ dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
},
},
],
{
icon: RenameIcon,
name: "Edit process",
- execute: (dispatch, resource) => {
- dispatch<any>(openProcessUpdateDialog(resource));
+ execute: (dispatch, resources) => {
+ dispatch<any>(openProcessUpdateDialog(resources[0]));
},
},
{
icon: ShareIcon,
name: "Share",
- execute: (dispatch, { uuid }) => {
- dispatch<any>(openSharingDialog(uuid));
+ execute: (dispatch, resources) => {
+ dispatch<any>(openSharingDialog(resources[0].uuid));
},
},
{
icon: MoveToIcon,
name: "Move to",
- execute: (dispatch, resource) => {
- dispatch<any>(openMoveProcessDialog(resource));
+ execute: (dispatch, resources) => {
+ dispatch<any>(openMoveProcessDialog(resources[0]));
},
},
{
name: "Remove",
icon: RemoveIcon,
- execute: (dispatch, resource) => {
- dispatch<any>(openRemoveProcessDialog(resource.uuid));
+ execute: (dispatch, resources) => {
+ dispatch<any>(openRemoveProcessDialog(resources[0], resources.length));
},
},
],
{
component: TogglePublicFavoriteAction,
name: "Add to public favorites",
- execute: (dispatch, resource) => {
- dispatch<any>(togglePublicFavorite(resource)).then(() => {
+ execute: (dispatch, resources) => {
+ dispatch<any>(togglePublicFavorite(resources[0])).then(() => {
dispatch<any>(publicFavoritePanelActions.REQUEST_ITEMS());
});
},
{
component: TogglePublicFavoriteAction,
name: "Add to public favorites",
- execute: (dispatch, resource) => {
- dispatch<any>(togglePublicFavorite(resource)).then(() => {
+ execute: (dispatch, resources) => {
+ dispatch<any>(togglePublicFavorite(resources[0])).then(() => {
dispatch<any>(publicFavoritePanelActions.REQUEST_ITEMS());
});
},
{
name: "CANCEL",
icon: StopIcon,
- execute: (dispatch, resource) => {
- dispatch<any>(cancelRunningWorkflow(resource.uuid));
+ execute: (dispatch, resources) => {
+ dispatch<any>(cancelRunningWorkflow(resources[0].uuid));
},
},
],