Add typescript paths to top level folders
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / favorite-action-set.ts
index 9682d4bf9a57778f8969239d320334aff9c616d5..7942937fb3f42c736e1abc0842ec71c224bd2482 100644 (file)
@@ -4,15 +4,14 @@
 
 import { ContextMenuActionSet } from "../context-menu-action-set";
 import { ToggleFavoriteAction } from "../actions/favorite-action";
-import { toggleFavorite } from "../../../store/favorites/favorites-actions";
-import { dataExplorerActions } from "../../../store/data-explorer/data-explorer-action";
-import { FAVORITE_PANEL_ID } from "../../../views/favorite-panel/favorite-panel";
+import { toggleFavorite } from "~/store/favorites/favorites-actions";
+import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
 
 export const favoriteActionSet: ContextMenuActionSet = [[{
     component: ToggleFavoriteAction,
     execute: (dispatch, resource) => {
         dispatch<any>(toggleFavorite(resource)).then(() => {
-            dispatch<any>(dataExplorerActions.REQUEST_ITEMS({ id : FAVORITE_PANEL_ID }));
+            dispatch<any>(favoritePanelActions.REQUEST_ITEMS());
         });
     }
 }]];