1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from '../context-menu-action-set';
6 import { ToggleFavoriteAction } from '../actions/favorite-action';
7 import { toggleFavorite } from 'store/favorites/favorites-actions';
9 export const resourceActionSet: ContextMenuActionSet = [
12 component: ToggleFavoriteAction,
13 execute: (dispatch, resources) => {
14 resources.forEach((resource) => dispatch<any>(toggleFavorite(resource)));