Merge "Store changes"
authorDan Timoney <dtimoney@att.com>
Mon, 11 Mar 2019 12:25:34 +0000 (12:25 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 11 Mar 2019 12:25:34 +0000 (12:25 +0000)
cds-ui/client/src/app/common/core/store/models/blueprintState.model.ts
cds-ui/client/src/app/common/core/store/reducers/blueprint.reducer.ts
cds-ui/client/src/app/common/core/store/state/blueprint.state.ts

index 5981f01..6d26592 100644 (file)
@@ -25,6 +25,7 @@ import { IBlueprint } from './blueprint.model';
 
 export interface IBlueprintState {
     blueprint: IBlueprint,
+    name?: string;
     files?: any;
     filesData?: any;
     isLoadSuccess?: boolean;
index b6c23ec..37a659d 100644 (file)
@@ -53,6 +53,7 @@ export function blueprintReducer(state: IBlueprintState = initialBlueprintState,
         case BlueprintActions.SET_BLUEPRINT_STATE :
             return {...state,
                     blueprint: action.payload.blueprint,
+                    name: action.payload.name,
                     files: action.payload.files,
                     filesData: action.payload.filesData
                     }
index 1899cb2..19a8376 100644 (file)
@@ -25,6 +25,7 @@ import { IBlueprint } from '../models/blueprint.model';
 
 export const initialBlueprintState : IBlueprintState = {
     blueprint : {} as IBlueprint,
+    name: '',
     files: [],
     filesData: [],
     isLoadSuccess: false,