Commit 8489beab authored by Ziwen Su's avatar Ziwen Su

Fixed a known bug.

parent 7d69b69a
...@@ -48,8 +48,8 @@ export class MonitoringService { ...@@ -48,8 +48,8 @@ export class MonitoringService {
var end_date = new Date(); var end_date = new Date();
// for testing // for testing
// start_date = new Date(1575331200000); start_date = new Date(1575331200000);
// var end_date = new Date(1575763200000); var end_date = new Date(1575763200000);
this.global_range_dates = [ start_date, end_date ]; this.global_range_dates = [ start_date, end_date ];
...@@ -348,10 +348,11 @@ export class MonitoringService { ...@@ -348,10 +348,11 @@ export class MonitoringService {
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; var displays_top: string[] = this.appConfig.getConfig().DefaultTimelinesTop;
// remove first item from displays
displays.shift();
// combine default displays and additional displays // combine default displays and additional displays
displays = displays_top.concat(displays); displays = displays_top.concat(displays);
// remove "DefaultTimelinesTop" from displays
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