names changed
authorPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Tue, 2 Oct 2018 11:57:06 +0000 (13:57 +0200)
committerPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Tue, 2 Oct 2018 11:57:06 +0000 (13:57 +0200)
Feature #14231

Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>

src/store/file-tree-picker/file-tree-picker-actions.ts [moved from src/store/workflow-tree-picker/workflow-tree-picker-actions.ts with 93% similarity]
src/store/file-tree-picker/file-tree-picker-reducer.ts [moved from src/store/workflow-tree-picker/workflow-tree-picker-reducer.ts with 92% similarity]
src/store/file-tree-picker/file-tree-picker.ts [moved from src/store/workflow-tree-picker/workflow-tree-picker.ts with 100% similarity]
src/store/store.ts
src/views-components/file-tree-picker/file-tree-picker.tsx
src/views-components/file-tree-picker/main-file-tree-picker.ts

similarity index 93%
rename from src/store/workflow-tree-picker/workflow-tree-picker-actions.ts
rename to src/store/file-tree-picker/file-tree-picker-actions.ts
index 5bc8076d64f015170fb62bba7f8f5ca99131cc08..18d0f5f8e4f009f0a2e200986a080f9a80bb620b 100644 (file)
@@ -4,7 +4,7 @@
 
 import { unionize, ofType, UnionOf } from "~/common/unionize";
 
-import { TreePickerNode } from "./workflow-tree-picker";
+import { TreePickerNode } from "./file-tree-picker";
 
 export const fileTreePickerActions = unionize({
     LOAD_TREE_PICKER_NODE: ofType<{ nodeId: string, pickerId: string }>(),
similarity index 92%
rename from src/store/workflow-tree-picker/workflow-tree-picker-reducer.ts
rename to src/store/file-tree-picker/file-tree-picker-reducer.ts
index c1fbaac8727de7e0c9906efab7cbd731992b8825..59e33a998768bf1699f8661c5c90924cb21960b7 100644 (file)
@@ -3,13 +3,13 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { createTree, setNodeValueWith, TreeNode, setNode, mapTreeValues, Tree } from "~/models/tree";
-import { TreePicker, TreePickerNode } from "./workflow-tree-picker";
-import { fileTreePickerActions, FileTreePickerAction } from "./workflow-tree-picker-actions";
+import { TreePicker, TreePickerNode } from "./file-tree-picker";
+import { fileTreePickerActions, FileTreePickerAction } from "./file-tree-picker-actions";
 import { TreeItemStatus } from "~/components/tree/tree";
 import { compose } from "redux";
 import { getNode } from '~/models/tree';
 
-export const workflowTreePickerReducer = (state: TreePicker = {}, action: FileTreePickerAction) =>
+export const fileTreePickerReducer = (state: TreePicker = {}, action: FileTreePickerAction) =>
     fileTreePickerActions.match(action, {
         LOAD_TREE_PICKER_NODE: ({ nodeId, pickerId }) =>
             updateOrCreatePicker(state, pickerId, setNodeValueWith(setPending)(nodeId)),
index c0e0b6b2de3ae30022efb9a28e255c2ec6669ebd..4c08a39c4b4a394ba1a8cde77249ab90c49bf7f1 100644 (file)
@@ -38,7 +38,7 @@ import { progressIndicatorReducer } from './progress-indicator/progress-indicato
 import { runProcessPanelReducer } from '~/store/run-process-panel/run-process-panel-reducer';
 import { WorkflowMiddlewareService } from './workflow-panel/workflow-middleware-service';
 import { WORKFLOW_PANEL_ID } from './workflow-panel/workflow-panel-actions';
-import { workflowTreePickerReducer } from './workflow-tree-picker/workflow-tree-picker-reducer';
+import { fileTreePickerReducer } from './file-tree-picker/file-tree-picker-reducer';
 
 const composeEnhancers =
     (process.env.NODE_ENV === 'development' &&
@@ -100,6 +100,6 @@ const createRootReducer = (services: ServiceRepository) => combineReducers({
     fileUploader: fileUploaderReducer,
     processPanel: processPanelReducer,
     progressIndicator: progressIndicatorReducer,
-    workflowTreePicker: workflowTreePickerReducer,
+    fileTreePicker: fileTreePickerReducer,
     runProcessPanel: runProcessPanelReducer
 });
index 802928dc3f202c5458eae3caf355bd6755585ae3..9f867cc6fa523374d1b338bb7ac55b9ae8e7c4d4 100644 (file)
@@ -9,7 +9,7 @@ import { Typography } from "@material-ui/core";
 import { MainFileTreePicker, MainFileTreePickerProps } from "./main-file-tree-picker";
 import { TreeItem, TreeItemStatus } from "~/components/tree/tree";
 import { ProjectResource } from "~/models/project";
-import { fileTreePickerActions } from "~/store/workflow-tree-picker/workflow-tree-picker-actions";
+import { fileTreePickerActions } from "~/store/file-tree-picker/file-tree-picker-actions";
 import { ListItemTextIcon } from "~/components/list-item-text-icon/list-item-text-icon";
 import { ProjectIcon, FavoriteIcon, ProjectsIcon, ShareMeIcon, CollectionIcon } from '~/components/icon/icon';
 import { createTreePickerNode } from "~/store/tree-picker/tree-picker";
index 065a6d6405a56565d9e33c8863599799b2ed8dec..dc52ea6c53cce7ac36cc397acc75ead81eb28da4 100644 (file)
@@ -5,7 +5,7 @@
 import { connect } from "react-redux";
 import { Tree, TreeProps, TreeItem, TreeItemStatus } from "~/components/tree/tree";
 import { RootState } from "~/store/store";
-import { createTreePickerNode, TreePickerNode } from "~/store/workflow-tree-picker/workflow-tree-picker";
+import { createTreePickerNode, TreePickerNode } from "~/store/file-tree-picker/file-tree-picker";
 import { getNodeValue, getNodeChildrenIds, Tree as Ttree, createTree } from "~/models/tree";
 import { Dispatch } from "redux";