merge master
[arvados.git] / src / views-components / context-menu / action-sets / project-action-set.ts
index 4e7a60028877f3d2fc0117a2d8a6e77c2f2073b0..06ffb9d8f2aa4aabeb5721cdce698ca95b5032ee 100644 (file)
@@ -6,10 +6,11 @@ import { reset } from "redux-form";
 
 import { ContextMenuActionSet } from "../context-menu-action-set";
 import { projectActions } from "../../../store/project/project-action";
-import { NewProjectIcon } from "../../../components/icon/icon";
+import { NewProjectIcon, MoveToIcon } 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 { openMoveToDialog } from "../../move-to-dialog/move-to-dialog";
 import { PROJECT_CREATE_DIALOG } from "../../dialog-create/dialog-project-create";
 
 export const projectActionSet: ContextMenuActionSet = [[{
@@ -26,4 +27,10 @@ export const projectActionSet: ContextMenuActionSet = [[{
             dispatch<any>(favoritePanelActions.REQUEST_ITEMS());
         });
     }
-}]];
+}, {
+    icon: MoveToIcon,
+    name: "Move to",
+    execute: (dispatch) => {
+        dispatch<any>(openMoveToDialog());
+    }
+},]];