[ARVADOS-WORKBENCH2] updated: 1.1.4-528-g0ec0b80

Git user git at public.curoverse.com
Sun Aug 5 13:20:57 EDT 2018


Summary of changes:
 src/store/collections/collections-reducer.ts                        | 4 ++--
 src/store/collections/updater/collection-updater-action.ts          | 2 +-
 src/store/collections/updater/collection-updater-reducer.ts         | 6 ++----
 .../update-collection-dialog/update-collection-dialog..tsx          | 2 +-
 4 files changed, 6 insertions(+), 8 deletions(-)

       via  0ec0b803cfbd96a0262626052a990df9af41bfdf (commit)
      from  67d7540c8d035c70091457ea4b0f2d554a16bf84 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 0ec0b803cfbd96a0262626052a990df9af41bfdf
Author: Daniel Kos <unodgs at gmail.com>
Date:   Sun Aug 5 19:20:53 2018 +0200

    Further rename updator -> updater
    
    Feature #13856
    
    Arvados-DCO-1.1-Signed-off-by: Daniel Kos <unodgs at gmail.com>

diff --git a/src/store/collections/collections-reducer.ts b/src/store/collections/collections-reducer.ts
index 6edb8e4..db091af 100644
--- a/src/store/collections/collections-reducer.ts
+++ b/src/store/collections/collections-reducer.ts
@@ -8,10 +8,10 @@ import * as updator from "./updater/collection-updater-reducer";
 
 export type CollectionsState = {
     creator: creator.CollectionCreatorState;
-    updator: updator.CollectionUpdaterState;
+    updater: updator.CollectionUpdaterState;
 };
 
 export const collectionsReducer = combineReducers({
     creator: creator.collectionCreatorReducer,
-    updator: updator.collectionUpdaterReducer
+    updater: updator.collectionUpdaterReducer
 });
diff --git a/src/store/collections/updater/collection-updater-action.ts b/src/store/collections/updater/collection-updater-action.ts
index baeb638..a7a354a 100644
--- a/src/store/collections/updater/collection-updater-action.ts
+++ b/src/store/collections/updater/collection-updater-action.ts
@@ -34,7 +34,7 @@ export const openUpdater = (uuid: string) =>
 
 export const updateCollection = (collection: Partial<CollectionResource>) =>
     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
-        const { uuid } = getState().collections.updator;
+        const { uuid } = getState().collections.updater;
         return services.collectionService
             .update(uuid, collection)
             .then(collection => {
diff --git a/src/store/collections/updater/collection-updater-reducer.ts b/src/store/collections/updater/collection-updater-reducer.ts
index b5fd232..432aa27 100644
--- a/src/store/collections/updater/collection-updater-reducer.ts
+++ b/src/store/collections/updater/collection-updater-reducer.ts
@@ -4,14 +4,12 @@
 
 import { collectionUpdaterActions, CollectionUpdaterAction } from './collection-updater-action';
 
-export type CollectionUpdaterState = CollectionUpdater;
-
-interface CollectionUpdater {
+export interface CollectionUpdaterState {
     opened: boolean;
     uuid: string;
 }
 
-const updateCollection = (state: CollectionUpdaterState, updater?: Partial<CollectionUpdater>) => ({
+const updateCollection = (state: CollectionUpdaterState, updater?: Partial<CollectionUpdaterState>) => ({
     ...state,
     ...updater
 });
diff --git a/src/views-components/update-collection-dialog/update-collection-dialog..tsx b/src/views-components/update-collection-dialog/update-collection-dialog..tsx
index 2984b52..1374ac4 100644
--- a/src/views-components/update-collection-dialog/update-collection-dialog..tsx
+++ b/src/views-components/update-collection-dialog/update-collection-dialog..tsx
@@ -13,7 +13,7 @@ import { PROJECT_PANEL_ID } from "../../views/project-panel/project-panel";
 import { DialogCollectionUpdate } from "../dialog-update/dialog-collection-update";
 
 const mapStateToProps = (state: RootState) => ({
-    open: state.collections.updator.opened
+    open: state.collections.updater.opened
 });
 
 const mapDispatchToProps = (dispatch: Dispatch) => ({

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list