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
d2eca2fa
Commit
d2eca2fa
authored
Jun 04, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: new navbar fixes, restored delete option in dashboard dropdown, fixes #8521
parent
d47c4785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
public/app/core/nav_model_srv.ts
+21
-12
No files found.
public/app/core/nav_model_srv.ts
View file @
d2eca2fa
...
...
@@ -43,8 +43,8 @@ export class NavModelSrv {
icon
:
'icon-gf icon-gf-datasources'
},
menu
:
[
{
title
:
'List view'
,
active
:
subPage
===
0
,
url
:
'
/
datasources'
,
icon
:
'fa fa-list-ul'
},
{
title
:
'Add data source'
,
active
:
subPage
===
1
,
url
:
'
/
datasources/new'
,
icon
:
'fa fa-plus'
},
{
title
:
'List view'
,
active
:
subPage
===
0
,
url
:
'datasources'
,
icon
:
'fa fa-list-ul'
},
{
title
:
'Add data source'
,
active
:
subPage
===
1
,
url
:
'datasources/new'
,
icon
:
'fa fa-plus'
},
]
};
}
...
...
@@ -57,8 +57,8 @@ export class NavModelSrv {
icon
:
'fa fa-fw fa-film'
},
menu
:
[
{
title
:
'List view'
,
active
:
subPage
===
0
,
url
:
'
/
playlists'
,
icon
:
'fa fa-list-ul'
},
{
title
:
'Add Playlist'
,
active
:
subPage
===
1
,
url
:
'
/
playlists/create'
,
icon
:
'fa fa-plus'
},
{
title
:
'List view'
,
active
:
subPage
===
0
,
url
:
'playlists'
,
icon
:
'fa fa-list-ul'
},
{
title
:
'Add Playlist'
,
active
:
subPage
===
1
,
url
:
'playlists/create'
,
icon
:
'fa fa-plus'
},
]
};
}
...
...
@@ -93,9 +93,9 @@ export class NavModelSrv {
icon
:
'icon-gf icon-gf-users'
},
menu
:
[
{
title
:
'Preferences'
,
active
:
subPage
===
0
,
url
:
'
/
org'
,
icon
:
'fa fa-fw fa-cog'
},
{
title
:
'Org Users'
,
active
:
subPage
===
1
,
url
:
'
/
org/users'
,
icon
:
'fa fa-fw fa-users'
},
{
title
:
'API Keys'
,
active
:
subPage
===
2
,
url
:
'
/
org/apikeys'
,
icon
:
'fa fa-fw fa-key'
},
{
title
:
'Preferences'
,
active
:
subPage
===
0
,
url
:
'org'
,
icon
:
'fa fa-fw fa-cog'
},
{
title
:
'Org Users'
,
active
:
subPage
===
1
,
url
:
'org/users'
,
icon
:
'fa fa-fw fa-users'
},
{
title
:
'API Keys'
,
active
:
subPage
===
2
,
url
:
'org/apikeys'
,
icon
:
'fa fa-fw fa-key'
},
]
};
}
...
...
@@ -108,11 +108,11 @@ export class NavModelSrv {
icon
:
'fa fa-fw fa-cogs'
},
menu
:
[
{
title
:
'Users'
,
active
:
subPage
===
0
,
url
:
'
/
admin/users'
,
icon
:
'fa fa-fw fa-user'
},
{
title
:
'Orgs'
,
active
:
subPage
===
1
,
url
:
'
/
admin/orgs'
,
icon
:
'fa fa-fw fa-users'
},
{
title
:
'Server Settings'
,
active
:
subPage
===
2
,
url
:
'
/
admin/settings'
,
icon
:
'fa fa-fw fa-cogs'
},
{
title
:
'Server Stats'
,
active
:
subPage
===
2
,
url
:
'
/
admin/stats'
,
icon
:
'fa fa-fw fa-line-chart'
},
{
title
:
'Style Guide'
,
active
:
subPage
===
2
,
url
:
'
/
styleguide'
,
icon
:
'fa fa-fw fa-key'
},
{
title
:
'Users'
,
active
:
subPage
===
0
,
url
:
'admin/users'
,
icon
:
'fa fa-fw fa-user'
},
{
title
:
'Orgs'
,
active
:
subPage
===
1
,
url
:
'admin/orgs'
,
icon
:
'fa fa-fw fa-users'
},
{
title
:
'Server Settings'
,
active
:
subPage
===
2
,
url
:
'admin/settings'
,
icon
:
'fa fa-fw fa-cogs'
},
{
title
:
'Server Stats'
,
active
:
subPage
===
2
,
url
:
'admin/stats'
,
icon
:
'fa fa-fw fa-line-chart'
},
{
title
:
'Style Guide'
,
active
:
subPage
===
2
,
url
:
'styleguide'
,
icon
:
'fa fa-fw fa-key'
},
]
};
}
...
...
@@ -196,6 +196,15 @@ export class NavModelSrv {
});
}
if
(
dashboard
.
meta
.
canSave
)
{
menu
.
push
({
title
:
'Delete'
,
icon
:
'fa fa-fw fa-trash'
,
clickHandler
:
()
=>
dashNavCtrl
.
deleteDashboard
()
});
}
return
{
section
:
{
title
:
dashboard
.
title
,
...
...
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