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
d862b64b
Commit
d862b64b
authored
Aug 03, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: minor panel menu tweaks
parent
148c24aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
public/app/features/panel/panel_ctrl.ts
+7
-4
public/app/features/panel/panel_header.ts
+4
-0
public/sass/pages/_dashboard.scss
+5
-3
No files found.
public/app/features/panel/panel_ctrl.ts
View file @
d862b64b
...
...
@@ -6,6 +6,7 @@ import angular from 'angular';
import
$
from
'jquery'
;
import
{
profiler
}
from
'app/core/profiler'
;
import
Remarkable
from
'remarkable'
;
import
{
contextSrv
}
from
'app/core/core'
;
const
TITLE_HEIGHT
=
25
;
const
EMPTY_TITLE_HEIGHT
=
9
;
...
...
@@ -144,14 +145,16 @@ export class PanelCtrl {
menu
.
push
({
text
:
'Edit'
,
click
:
'ctrl.editPanel();'
,
role
:
'Editor'
,
icon
:
"fa fa-fw fa-edit"
,
shortcut
:
"e"
});
menu
.
push
({
text
:
'Share'
,
click
:
'ctrl.sharePanel();'
,
icon
:
"fa fa-fw fa-share"
,
shortcut
:
"p s"
});
let
extendedMenu
=
this
.
getExtendedMenu
();
menu
.
push
({
text
:
'More ...'
,
click
:
'ctrl.removePanel();'
,
icon
:
"fa fa-fw fa-cube"
,
submenu
:
extendedMenu
});
if
(
!
this
.
fullscreen
)
{
menu
.
push
({
text
:
'Duplicate'
,
click
:
'ctrl.duplicate()'
,
role
:
'Editor'
,
icon
:
"fa fa-fw fa-copy"
});
}
menu
.
push
({
text
:
'Remove'
,
click
:
'ctrl.removePanel();'
,
icon
:
"fa fa-fw fa-trash"
,
shortcut
:
"p r"
});
menu
.
push
({
divider
:
true
});
menu
.
push
({
text
:
'Remove'
,
click
:
'ctrl.removePanel();'
,
role
:
'Editor'
,
icon
:
"fa fa-fw fa-trash"
,
shortcut
:
"p r"
});
menu
.
push
({
divider
:
true
,
role
:
'Editor'
});
let
extendedMenu
=
this
.
getExtendedMenu
();
menu
.
push
({
text
:
'More ...'
,
click
:
'ctrl.removePanel();'
,
icon
:
"fa fa-fw fa-cube"
,
submenu
:
extendedMenu
});
return
menu
;
}
...
...
public/app/features/panel/panel_header.ts
View file @
d862b64b
...
...
@@ -35,6 +35,10 @@ function renderMenuItem(item, ctrl) {
let
html
=
''
;
let
listItemClass
=
''
;
if
(
item
.
divider
)
{
return
'<li class="divider"></li>'
;
}
if
(
item
.
submenu
)
{
listItemClass
=
'dropdown-submenu'
;
}
...
...
public/sass/pages/_dashboard.scss
View file @
d862b64b
...
...
@@ -77,7 +77,9 @@ div.flot-text {
}
.panel-menu-container
{
margin-left
:
6px
;
width
:
1px
;
height
:
19px
;
display
:
inline-block
;
}
.panel-menu-toggle
{
...
...
@@ -89,8 +91,8 @@ div.flot-text {
position
:
absolute
;
width
:
16px
;
height
:
16px
;
left
:
0
;
top
:
0
;
left
:
1px
;
top
:
4px
;
&
:hover
{
color
:
$link-hover-color
;
...
...
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