Audit screen corrections from drawing board
[vid.git] / vid-webpack-master / src / app / shared / storeUtil / utils / service / service.actions.ts
index 069ef82..20c6dbe 100644 (file)
@@ -12,6 +12,7 @@ export enum ServiceActions {
   UNDO_DELETE_ACTION_SERVICE_INSTANCE = "UNDO_DELETE_ACTION_SERVICE_INSTANCE",
   CHANGE_SERVICE_IS_DIRTY = "CHANGE_SERVICE_IS_DIRTY",
   UPGRADE_SERVICE_ACTION = "UPGRADE_SERVICE_ACTION",
+  UPDATE_SERVICE_INFO_MODEL = "UPDATE_SERVICE_INFO_MODEL",
   UNDO_UPGRADE_SERVICE_ACTION = "UNDO_UPGRADE_SERVICE_ACTION"
 }
 
@@ -63,6 +64,10 @@ export interface ChangeServiceDirty extends Action {
   serviceId : string;
 }
 
+export interface UpdateServiceModelInfoAction extends  Action {
+  serviceInfoModel?: any;
+}
+
 export const addServiceAction: ActionCreator<AddServiceAction> = (serviceUuid : string, actionName : ServiceInstanceActions) => ({
   type: ServiceActions.ADD_SERVICE_ACTION,
   serviceUuid: serviceUuid,
@@ -117,3 +122,8 @@ export const undoUpgradeService: ActionCreator<UndoUpgradeServiceAction> = (serv
   type: ServiceActions.UNDO_UPGRADE_SERVICE_ACTION,
   serviceUuid
 });
+
+export const updateServiceInfoModel : ActionCreator<UpdateServiceModelInfoAction> = (serviceInfoModel : any) => ({
+  type: ServiceActions.UPDATE_SERVICE_INFO_MODEL,
+  serviceInfoModel
+});