blob: 5c0e46c5aaff5976ca71570e33d18baff5ee321c [file] [log] [blame]
Ittay Sternf7926712019-07-07 19:23:03 +03001import {TreeNodeModel} from "./treeNodeModel";
2import {NetworkInstance} from "./networkInstance";
3import {Level1Model} from "./nodeModel";
4
5export class FirstLevelTreeNode extends TreeNodeModel {
6 networkStoreKey: string;
7 typeName: string;
8 menuActions: { [p: string]: { method: Function; visible: Function; enable: Function } };
9 isFailed: boolean;
10 statusMessage?: string;
11
12 constructor(instance: NetworkInstance, networkModel: Level1Model, networkStoreKey: string) {
13 super(instance, networkModel);
14 this.name = instance.instanceName ? instance.instanceName : !networkModel.isEcompGeneratedNaming ? networkModel.modelCustomizationName : '<Automatically Assigned>';
15 this.modelName = networkModel.modelCustomizationName;
16 this.type = networkModel.type;
17 this.isEcompGeneratedNaming = networkModel.isEcompGeneratedNaming;
18 this.networkStoreKey = networkStoreKey;
19 }
20}