Catalog alignment
[sdc.git] / catalog-ui / src / app / ng2 / pages / composition / common / store / graph.actions.ts
1 export enum SelectedComponentType {
2     COMPONENT_INSTANCE = "COMPONENT_INSTANCE",
3     GROUP = "GROUP",
4     POLICY = "POLICY",
5     TOPOLOGY_TEMPLATE = "TOPOLOGY_TEMPLATE"
6 }
7
8 export class UpdateSelectedComponentAction {
9     static readonly type = '[COMPOSITION] UpdateSelectedComponent';
10
11         constructor(public payload: {uniqueId?: string, type?: string}) {
12     }
13 }
14     
15 export class SetSelectedComponentAction {
16     static readonly type = '[COMPOSITION] SetSelectedComponent';
17
18     constructor(public payload: {component?: any, type?: SelectedComponentType}) {
19         }
20 }
21
22 export class OnSidebarOpenOrCloseAction {
23     static readonly type = '[COMPOSITION] OnSidebarOpenOrCloseAction';
24
25     constructor() {
26     }
27 }
28
29 export class TogglePanelLoadingAction {
30     static readonly type = '[COMPOSITION] TogglePanelLoading';
31     constructor(public payload: { isLoading: boolean}) {
32     }
33 }