Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 1 | import {TreeNodeModel} from "./treeNodeModel"; |
| 2 | import {NetworkInstance} from "./networkInstance"; |
| 3 | import {Level1Model} from "./nodeModel"; |
| 4 | |
| 5 | export 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 | } |