Commit 7c4575cd authored by Ziwen Su's avatar Ziwen Su

Adjusted default displays for ml partition.

parent cb18bf37
......@@ -347,12 +347,14 @@ export class MonitoringService {
getDisplays(partition: string) {
var displays = this.appConfig.getConfig().PartitionConfig[partition]["displays"];
if ( displays.length > 1 ) {
var displays_top: string[] = this.appConfig.getConfig().DefaultTimelinesTop;
// combine default displays and additional displays
displays = displays_top.concat(displays);
// remove "DefaultTimelinesTop" from displays
var j = displays_top.length;
displays.splice(j,1);
if ( displays[0] == "DefaultTimelinesTop" ){
var displays_top: string[] = this.appConfig.getConfig().DefaultTimelinesTop;
// combine default displays and additional displays
displays = displays_top.concat(displays);
// remove "DefaultTimelinesTop" from displays
var j = displays_top.length;
displays.splice(j,1);
}
} else {
displays = this.appConfig.getConfig().DefaultTimelinesTop;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment