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
83bbffd4
Commit
83bbffd4
authored
Feb 23, 2016
by
Carl Bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4127 from utkarshcmu/export-shortcut
Export shortcut
parents
fc5e1d97
17c7ce9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
public/app/features/dashboard/dashnav/dashnav.ts
+1
-0
public/app/features/dashboard/keybindings.js
+4
-0
public/app/partials/help_modal.html
+4
-0
No files found.
public/app/features/dashboard/dashnav/dashnav.ts
View file @
83bbffd4
...
...
@@ -12,6 +12,7 @@ export class DashNavCtrl {
$scope
.
init
=
function
()
{
$scope
.
onAppEvent
(
'save-dashboard'
,
$scope
.
saveDashboard
);
$scope
.
onAppEvent
(
'delete-dashboard'
,
$scope
.
deleteDashboard
);
$scope
.
onAppEvent
(
'export-dashboard'
,
$scope
.
snapshot
);
$scope
.
showSettingsMenu
=
$scope
.
dashboardMeta
.
canEdit
||
$scope
.
contextSrv
.
isEditor
;
...
...
public/app/features/dashboard/keybindings.js
View file @
83bbffd4
...
...
@@ -60,6 +60,10 @@ function(angular, $) {
scope
.
appEvent
(
'zoom-out'
,
evt
);
},
{
inputDisabled
:
true
});
keyboardManager
.
bind
(
'ctrl+e'
,
function
(
evt
)
{
scope
.
appEvent
(
'export-dashboard'
,
evt
);
},
{
inputDisabled
:
true
});
keyboardManager
.
bind
(
'esc'
,
function
()
{
var
popups
=
$
(
'.popover.in'
);
if
(
popups
.
length
>
0
)
{
...
...
public/app/partials/help_modal.html
View file @
83bbffd4
...
...
@@ -32,6 +32,10 @@
<td><span
class=
"label label-info"
>
CTRL+S
</span></td>
<td>
Save dashboard
</td>
</tr>
<tr>
<td><span
class=
"label label-info"
>
CTRL+E
</span></td>
<td>
Export dashboard
</td>
</tr>
<tr>
<td><span
class=
"label label-info"
>
CTRL+H
</span></td>
<td>
Hide row controls
</td>
...
...
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