|
@@ -32,6 +32,7 @@ export class TimePickerCtrl {
|
|
|
$rootScope.onAppEvent('shift-time-forward', () => this.move(1), $scope);
|
|
$rootScope.onAppEvent('shift-time-forward', () => this.move(1), $scope);
|
|
|
$rootScope.onAppEvent('shift-time-backward', () => this.move(-1), $scope);
|
|
$rootScope.onAppEvent('shift-time-backward', () => this.move(-1), $scope);
|
|
|
$rootScope.onAppEvent('refresh', this.onRefresh.bind(this), $scope);
|
|
$rootScope.onAppEvent('refresh', this.onRefresh.bind(this), $scope);
|
|
|
|
|
+ $rootScope.onAppEvent('closeTimepicker', this.openDropdown.bind(this), $scope);
|
|
|
|
|
|
|
|
// init options
|
|
// init options
|
|
|
this.panel = this.dashboard.timepicker;
|
|
this.panel = this.dashboard.timepicker;
|
|
@@ -100,6 +101,8 @@ export class TimePickerCtrl {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ this.$rootScope.appEvent('openTimepicker');
|
|
|
|
|
+
|
|
|
this.onRefresh();
|
|
this.onRefresh();
|
|
|
this.editTimeRaw = this.timeRaw;
|
|
this.editTimeRaw = this.timeRaw;
|
|
|
this.timeOptions = rangeUtil.getRelativeTimesList(this.panel, this.rangeString);
|
|
this.timeOptions = rangeUtil.getRelativeTimesList(this.panel, this.rangeString);
|