diff options
Diffstat (limited to 'cds-ui/client/src/app/common/core/store/actions/blueprint.action.ts')
-rw-r--r-- | cds-ui/client/src/app/common/core/store/actions/blueprint.action.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cds-ui/client/src/app/common/core/store/actions/blueprint.action.ts b/cds-ui/client/src/app/common/core/store/actions/blueprint.action.ts index 6a0ab8065..8dc5067e7 100644 --- a/cds-ui/client/src/app/common/core/store/actions/blueprint.action.ts +++ b/cds-ui/client/src/app/common/core/store/actions/blueprint.action.ts @@ -18,6 +18,7 @@ See the License for the specific language governing permissions and limitations under the License. ============LICENSE_END============================================ */ + import { Injectable } from '@angular/core'; import { Action, Store } from '@ngrx/store'; import { IBlueprint } from '../models/blueprint.model'; @@ -36,6 +37,8 @@ export const SAVE_BLUEPRINT_FAILURE = 'SAVE_BLUEPRINT_FAILURE'; export const SET_BLUEPRINT = 'SET Blueprint'; export const REMOVE_BLUEPRINT = 'Remove Blueprint'; +export const SET_BLUEPRINT_STATE = 'SET Blueprint state'; + export class LoadBlueprint implements Action { readonly type = LOAD_BLUEPRINT; @@ -52,6 +55,11 @@ export class LoadBlueprintFailure implements Action { constructor(public error: any) {} } +export class SetBlueprintState implements Action { + readonly type = SET_BLUEPRINT_STATE; + constructor(public payload: IBlueprintState) {} +} + // export class SetBlueprint implements Action { // readonly type = SET_BLUEPRINT; // constructor(public payload: Blueprint) {} @@ -67,4 +75,4 @@ export class UpdateBlueprint implements Action { constructor(public payload: IBlueprint) {} } -export type Actions = LoadBlueprint | LoadBlueprintSuccess | LoadBlueprintFailure;
\ No newline at end of file +export type Actions = LoadBlueprint | LoadBlueprintSuccess | LoadBlueprintFailure | SetBlueprintState;
\ No newline at end of file |