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 { ...@@ -347,12 +347,14 @@ export class MonitoringService {
getDisplays(partition: string) { getDisplays(partition: string) {
var displays = this.appConfig.getConfig().PartitionConfig[partition]["displays"]; var displays = this.appConfig.getConfig().PartitionConfig[partition]["displays"];
if ( displays.length > 1 ) { if ( displays.length > 1 ) {
var displays_top: string[] = this.appConfig.getConfig().DefaultTimelinesTop; if ( displays[0] == "DefaultTimelinesTop" ){
// combine default displays and additional displays var displays_top: string[] = this.appConfig.getConfig().DefaultTimelinesTop;
displays = displays_top.concat(displays); // combine default displays and additional displays
// remove "DefaultTimelinesTop" from displays displays = displays_top.concat(displays);
var j = displays_top.length; // remove "DefaultTimelinesTop" from displays
displays.splice(j,1); var j = displays_top.length;
displays.splice(j,1);
}
} else { } else {
displays = this.appConfig.getConfig().DefaultTimelinesTop; 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