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
87cb0c2a
Commit
87cb0c2a
authored
Feb 23, 2016
by
Carl Bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4133 from utkarshcmu/snapshot-shortcut
keyboard shortcut for taking snapshot
parents
b607adad
d0b191af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
public/app/features/dashboard/dashnav/dashnav.ts
+5
-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 @
87cb0c2a
...
...
@@ -13,6 +13,7 @@ export class DashNavCtrl {
$scope
.
onAppEvent
(
'save-dashboard'
,
$scope
.
saveDashboard
);
$scope
.
onAppEvent
(
'delete-dashboard'
,
$scope
.
deleteDashboard
);
$scope
.
onAppEvent
(
'export-dashboard'
,
$scope
.
snapshot
);
$scope
.
onAppEvent
(
'quick-snapshot'
,
$scope
.
quickSnapshot
);
$scope
.
showSettingsMenu
=
$scope
.
dashboardMeta
.
canEdit
||
$scope
.
contextSrv
.
isEditor
;
...
...
@@ -53,6 +54,10 @@ export class DashNavCtrl {
});
};
$scope
.
quickSnapshot
=
function
()
{
$scope
.
shareDashboard
(
1
);
};
$scope
.
openSearch
=
function
()
{
$scope
.
appEvent
(
'show-dash-search'
);
};
...
...
public/app/features/dashboard/keybindings.js
View file @
87cb0c2a
...
...
@@ -64,6 +64,10 @@ function(angular, $) {
scope
.
appEvent
(
'export-dashboard'
,
evt
);
},
{
inputDisabled
:
true
});
keyboardManager
.
bind
(
'ctrl+i'
,
function
(
evt
)
{
scope
.
appEvent
(
'quick-snapshot'
,
evt
);
},
{
inputDisabled
:
true
});
keyboardManager
.
bind
(
'esc'
,
function
()
{
var
popups
=
$
(
'.popover.in'
);
if
(
popups
.
length
>
0
)
{
...
...
public/app/partials/help_modal.html
View file @
87cb0c2a
...
...
@@ -44,6 +44,10 @@
<td><span
class=
"label label-info"
>
CTRL+Z
</span></td>
<td>
Zoom out
</td>
</tr>
<tr>
<td><span
class=
"label label-info"
>
CTRL+I
</span></td>
<td>
Quick snapshot
</td>
</tr>
<tr>
<td><span
class=
"label label-info"
>
CTRL+O
</span></td>
<td>
Enable/Disable shared graph crosshair
</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