in src/app/components/queues-view/queues-view.component.ts [75:105]
ngOnInit() {
this.queueLevels.forEach((obj) => {
this.queueList[obj.level] = null;
});
this.spinner.show();
this.scheduler
.fetchPartitionList()
.pipe(
finalize(() => {
this.spinner.hide();
})
)
.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);
this.fetchSchedulerQueuesForPartition(this.partitionSelected);
} else {
this.partitionList = [new PartitionInfo('-- Select --', '')];
this.partitionSelected = '';
this.queueList = {};
CommonUtil.setStoredQueueAndPartition('');
}
});
}