Merge branch 'master' into 13990-collection-files-service-based-on-webdav
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / resource-action-set.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { ContextMenuActionSet } from "../context-menu-action-set";
6 import { ToggleFavoriteAction } from "../actions/favorite-action";
7 import { toggleFavorite } from "~/store/favorites/favorites-actions";
8
9 export const resourceActionSet: ContextMenuActionSet = [[{
10     component: ToggleFavoriteAction,
11     execute: (dispatch, resource) => {
12         dispatch<any>(toggleFavorite(resource));
13     }
14 }]];