mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
timepicker now closes without exiting edit/view mode, close order: modal, timepicker, view
This commit is contained in:
parent
8195c085fa
commit
9ef5f2700d
@ -74,13 +74,13 @@ export class KeybindingSrv {
|
||||
|
||||
appEvents.emit('hide-modal');
|
||||
|
||||
if (this.timepickerOpen === true) {
|
||||
this.$rootScope.appEvent('closeTimepicker');
|
||||
this.timepickerOpen = false;
|
||||
}
|
||||
|
||||
if (!this.modalOpen) {
|
||||
this.$rootScope.appEvent('panel-change-view', { fullscreen: false, edit: false });
|
||||
if (this.timepickerOpen) {
|
||||
this.$rootScope.appEvent('closeTimepicker');
|
||||
this.timepickerOpen = false;
|
||||
} else {
|
||||
this.$rootScope.appEvent('panel-change-view', { fullscreen: false, edit: false });
|
||||
}
|
||||
} else {
|
||||
this.modalOpen = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user