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
47aae7f1
Commit
47aae7f1
authored
Nov 02, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(dashboard): added more shortcusts to v/edit panel, #6442
parent
95e7ead8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
public/app/core/services/keybindingSrv.ts
+8
-0
public/app/features/dashboard/row/add_panel.ts
+1
-0
public/app/features/dashboard/row/row_ctrl.ts
+1
-0
public/app/features/dashboard/viewStateSrv.js
+7
-0
No files found.
public/app/core/services/keybindingSrv.ts
View file @
47aae7f1
...
@@ -105,6 +105,14 @@ export class KeybindingSrv {
...
@@ -105,6 +105,14 @@ export class KeybindingSrv {
}
}
});
});
this
.
bind
(
'v'
,
()
=>
{
if
(
dashboard
.
meta
.
focusPanelId
)
{
this
.
$rootScope
.
appEvent
(
'panel-change-view'
,
{
fullscreen
:
true
,
edit
:
null
,
panelId
:
dashboard
.
meta
.
focusPanelId
});
}
});
this
.
bind
(
'd'
,
()
=>
{
this
.
bind
(
'd'
,
()
=>
{
if
(
dashboard
.
meta
.
focusPanelId
&&
dashboard
.
meta
.
canEdit
)
{
if
(
dashboard
.
meta
.
focusPanelId
&&
dashboard
.
meta
.
canEdit
)
{
var
panelInfo
=
dashboard
.
getPanelInfoById
(
dashboard
.
meta
.
focusPanelId
);
var
panelInfo
=
dashboard
.
getPanelInfoById
(
dashboard
.
meta
.
focusPanelId
);
...
...
public/app/features/dashboard/row/add_panel.ts
View file @
47aae7f1
...
@@ -93,6 +93,7 @@ export class AddPanelCtrl {
...
@@ -93,6 +93,7 @@ export class AddPanelCtrl {
isNew
:
true
,
isNew
:
true
,
};
};
this
.
rowCtrl
.
dropView
=
0
;
this
.
dashboard
.
addPanel
(
panel
,
this
.
row
);
this
.
dashboard
.
addPanel
(
panel
,
this
.
row
);
this
.
$timeout
(()
=>
{
this
.
$timeout
(()
=>
{
this
.
$rootScope
.
$broadcast
(
'render'
);
this
.
$rootScope
.
$broadcast
(
'render'
);
...
...
public/app/features/dashboard/row/row_ctrl.ts
View file @
47aae7f1
...
@@ -70,6 +70,7 @@ export class DashRowCtrl {
...
@@ -70,6 +70,7 @@ export class DashRowCtrl {
}
}
}
}
this
.
dropView
=
0
;
this
.
row
.
panelSpanChanged
();
this
.
row
.
panelSpanChanged
();
this
.
$timeout
(()
=>
{
this
.
$timeout
(()
=>
{
this
.
$rootScope
.
$broadcast
(
'render'
);
this
.
$rootScope
.
$broadcast
(
'render'
);
...
...
public/app/features/dashboard/viewStateSrv.js
View file @
47aae7f1
...
@@ -83,6 +83,13 @@ function (angular, _, $) {
...
@@ -83,6 +83,13 @@ function (angular, _, $) {
};
};
DashboardViewState
.
prototype
.
update
=
function
(
state
)
{
DashboardViewState
.
prototype
.
update
=
function
(
state
)
{
// implement toggle logic
if
(
this
.
state
.
fullscreen
&&
state
.
fullscreen
)
{
if
(
this
.
state
.
edit
===
state
.
edit
)
{
state
.
fullscreen
=
!
state
.
fullscreen
;
}
}
// remember if editStateChanged
// remember if editStateChanged
this
.
editStateChanged
=
state
.
edit
!==
this
.
state
.
edit
;
this
.
editStateChanged
=
state
.
edit
!==
this
.
state
.
edit
;
...
...
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