diff --git a/ui-ngx/src/app/core/api/widget-subscription.ts b/ui-ngx/src/app/core/api/widget-subscription.ts index 9d1ebd3b46..5545b22ef7 100644 --- a/ui-ngx/src/app/core/api/widget-subscription.ts +++ b/ui-ngx/src/app/core/api/widget-subscription.ts @@ -321,14 +321,6 @@ export class WidgetSubscription implements IWidgetSubscription { }); if (this.displayLegend) { this.legendData.keys = this.legendData.keys.sort((key1, key2) => key1.dataKey.label.localeCompare(key2.dataKey.label)); - // TODO: - } - if (this.type === widgetType.timeseries) { - if (this.useDashboardTimewindow) { - // TODO: - } else { - // TODO: - } } } @@ -395,6 +387,10 @@ export class WidgetSubscription implements IWidgetSubscription { } updateTimewindowConfig(newTimewindow: Timewindow): void { + if (!this.useDashboardTimewindow) { + this.timeWindowConfig = newTimewindow; + this.update(); + } } onResetTimewindow(): void { @@ -424,14 +420,17 @@ export class WidgetSubscription implements IWidgetSubscription { } sendOneWayCommand(method: string, params?: any, timeout?: number): Observable { + // TODO: return undefined; } sendTwoWayCommand(method: string, params?: any, timeout?: number): Observable { + // TODO: return undefined; } clearRpcError(): void { + // TODO: } update() { @@ -536,7 +535,6 @@ export class WidgetSubscription implements IWidgetSubscription { this.cafs[cafId] = null; } } - // TODO: } private notifyDataLoading() { diff --git a/ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.html b/ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.html index 775ee94c05..a352d2da46 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.html @@ -50,6 +50,7 @@ {{widget.title}} @@ -98,7 +99,7 @@