ngOnInit()

in src/app/components/app-node-utilizations/app-node-utilizations.component.ts [57:75]


  ngOnInit() {
    this.reloadBarChartData()

    this.scheduler
      .fetchPartitionList()
      .subscribe((list) => {
        if (list && list.length > 0) {
          list.forEach((part) => {
            this.partitionList.push(new PartitionInfo(part.name, part.name));
          });

          this.partitionSelected = CommonUtil.getStoredPartition(list[0].name);
        } else {
          this.partitionList = [];
          this.partitionSelected = '';
          CommonUtil.setStoredQueueAndPartition('');
        }
      });
  }