You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2022/05/27 12:37:56 UTC

[incubator-streampipes] branch STREAMPIPES-537-NEW updated: [STREAMPIPES-537] Improve navigation

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch STREAMPIPES-537-NEW
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/STREAMPIPES-537-NEW by this push:
     new e45142ee9 [STREAMPIPES-537] Improve navigation
e45142ee9 is described below

commit e45142ee97938d9127e2c76796e04d5d15f72dc2
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Fri May 27 14:37:43 2022 +0200

    [STREAMPIPES-537] Improve navigation
---
 .../components/panel/data-explorer-dashboard-panel.component.ts        | 2 +-
 .../components/time-selector/timeRangeSelector.component.ts            | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
index f37ac7256..86e6d3386 100644
--- a/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
+++ b/ui/src/app/data-explorer/components/panel/data-explorer-dashboard-panel.component.ts
@@ -273,7 +273,7 @@ export class DataExplorerDashboardPanelComponent implements OnInit {
       this.dashboard = data.filter(
         (dashboard) => dashboard._id === dashboardId
       )[0];
-      this.timeSettings = (startTime && endTime) ? this.overrideTime(startTime, endTime) : this.dashboard.dashboardTimeSettings;
+      this.timeSettings = (startTime && endTime) ? this.overrideTime(+startTime, +endTime) : this.dashboard.dashboardTimeSettings;
       this.dashboardLoaded = true;
     });
   }
diff --git a/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.ts b/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.ts
index 38916830c..da92eb249 100644
--- a/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.ts
+++ b/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.ts
@@ -54,6 +54,9 @@ export class TimeRangeSelectorComponent implements OnInit {
       this.setCurrentDateRange(this.possibleTimeButtons[0]);
     } else if (this.dateRange.dynamicSelection !== -1) {
       this.setCurrentDateRange(this.possibleTimeButtons.find(tb => tb.offset === this.dateRange.dynamicSelection));
+    } else {
+      this.startDate = new Date(this._dateRange.startTime);
+      this.endDate = new Date(this._dateRange.endTime);
     }
   }