File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 40
40
- Refactor machinery and user interface.
41
41
- Add options ` ignoreEmptyGeohashValues ` and ` ignoreInvalidGeohashValues ` .
42
42
- Add ` ignoreEscapeKey ` option.
43
+ - Add ` hideTimepickerNavigation ` option.
43
44
44
45
## v0.2.0
45
46
Original file line number Diff line number Diff line change 1
1
import WorldmapCtrl from "./worldmap_ctrl" ;
2
2
import * as _ from "lodash" ;
3
+ import $ from "jquery" ;
3
4
4
5
export class WorldmapChrome {
5
6
settings : any ;
@@ -73,4 +74,12 @@ export class WorldmapChrome {
73
74
return app . injector ( ) . get ( 'keybindingSrv' ) ;
74
75
}
75
76
77
+ removeTimePickerNav ( ) {
78
+ $ ( '.gf-timepicker-nav' ) . hide ( ) ;
79
+ }
80
+
81
+ restoreTimePickerNav ( ) {
82
+ $ ( '.gf-timepicker-nav' ) . show ( ) ;
83
+ }
84
+
76
85
}
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ const panelDefaults = {
65
65
linkField : null ,
66
66
} ,
67
67
ignoreEscapeKey : false ,
68
+ hideTimepickerNavigation : false ,
68
69
} ;
69
70
70
71
export default class WorldmapCtrl extends MetricsPanelCtrl {
@@ -142,6 +143,12 @@ export default class WorldmapCtrl extends MetricsPanelCtrl {
142
143
this . chrome . restoreEscapeKeyBinding ( ) ;
143
144
}
144
145
146
+ // Optionally hide the timepicker navigation widget.
147
+ if ( this . settings . hideTimepickerNavigation ) {
148
+ this . chrome . removeTimePickerNav ( ) ;
149
+ } else {
150
+ this . chrome . restoreTimePickerNav ( ) ;
151
+ }
145
152
}
146
153
147
154
setupEvents ( ) {
You can’t perform that action at this time.
0 commit comments