Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
a1ed3ae0
Commit
a1ed3ae0
authored
Aug 14, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add auto fit panels to shortcut modal, closes #12768
parent
3769df71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
public/app/core/components/help/help.ts
+1
-0
public/app/core/services/keybindingSrv.ts
+3
-12
No files found.
public/app/core/components/help/help.ts
View file @
a1ed3ae0
...
...
@@ -25,6 +25,7 @@ export class HelpCtrl {
{
keys
:
[
'd'
,
'k'
],
description
:
'Toggle kiosk mode (hides top nav)'
},
{
keys
:
[
'd'
,
'E'
],
description
:
'Expand all rows'
},
{
keys
:
[
'd'
,
'C'
],
description
:
'Collapse all rows'
},
{
keys
:
[
'd'
,
'a'
],
description
:
'Toggle auto fit panels (experimental feature)'
},
{
keys
:
[
'mod+o'
],
description
:
'Toggle shared graph crosshair'
},
],
'Focused Panel'
:
[
...
...
public/app/core/services/keybindingSrv.ts
View file @
a1ed3ae0
...
...
@@ -15,14 +15,7 @@ export class KeybindingSrv {
timepickerOpen
=
false
;
/** @ngInject */
constructor
(
private
$rootScope
,
private
$location
,
private
datasourceSrv
,
private
timeSrv
,
private
contextSrv
,
private
$route
)
{
constructor
(
private
$rootScope
,
private
$location
,
private
datasourceSrv
,
private
timeSrv
,
private
contextSrv
)
{
// clear out all shortcuts on route change
$rootScope
.
$on
(
'$routeChangeSuccess'
,
()
=>
{
Mousetrap
.
reset
();
...
...
@@ -269,10 +262,8 @@ export class KeybindingSrv {
//Autofit panels
this
.
bind
(
'd a'
,
()
=>
{
this
.
$location
.
search
(
'autofitpanels'
,
this
.
$location
.
search
().
autofitpanels
?
null
:
true
);
//Force reload
this
.
$route
.
reload
();
// this has to be a full page reload
window
.
location
.
href
=
window
.
location
.
href
+
'&autofitpanels'
;
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment