+ isDaemonDisabled(name: string): boolean {
+ let sts = false;
+ // FIXME - better to use map
+ // with Map
+ // if (this.daemonCheckboxes.has(name)) {
+ // sts = this.daemonCheckboxes[name].value;
+ // }
+ this.daemonCheckboxes.forEach(e => {
+ if (e.topo.name === name) {
+ sts = true;
+ }
+ });
+ return sts;
+ }
+
+ private createCheckboxes(topo: AglTopology[]) {
+
+ // let newDaemonChB: Map<string, WsCheckbox> = new Map<string, WsCheckbox>();
+ const newDaemonChB: WsCheckbox[] = [];
+ let prevVal = false;
+ this.daemonCheckboxes.forEach(e => {
+ if (e.topo.name === name) {
+ prevVal = e.value;
+ }
+ });