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
c8f87a3d
Commit
c8f87a3d
authored
Dec 27, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: minor refactoring of PR #10236
parent
77843623
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
public/app/features/dashboard/dashnav/dashnav.html
+1
-1
public/app/features/dashboard/settings/settings.ts
+2
-8
No files found.
public/app/features/dashboard/dashnav/dashnav.html
View file @
c8f87a3d
...
...
@@ -29,7 +29,7 @@
<i
class=
"fa fa-share-square-o"
></i></a>
</button>
<button
class=
"btn navbar-button navbar-button--save"
ng-show=
"
::
ctrl.dashboard.meta.canSave"
ng-click=
"ctrl.saveDashboard()"
bs-tooltip=
"'Save dashboard <br> CTRL+S'"
data-placement=
"bottom"
>
<button
class=
"btn navbar-button navbar-button--save"
ng-show=
"ctrl.dashboard.meta.canSave"
ng-click=
"ctrl.saveDashboard()"
bs-tooltip=
"'Save dashboard <br> CTRL+S'"
data-placement=
"bottom"
>
<i
class=
"fa fa-save"
></i>
</button>
...
...
public/app/features/dashboard/settings/settings.ts
View file @
c8f87a3d
...
...
@@ -69,8 +69,8 @@ export class SettingsCtrl {
if
(
this
.
dashboard
.
meta
.
canMakeEditable
)
{
this
.
sections
.
push
({
title
:
'
Make Editable
'
,
icon
:
'
fa fa-fw fa-edit
'
,
title
:
'
General
'
,
icon
:
'
gicon gicon-preferences
'
,
id
:
'make_editable'
,
});
}
...
...
@@ -137,12 +137,6 @@ export class SettingsCtrl {
const
currentSection
=
_
.
find
(
this
.
sections
,
{
id
:
this
.
viewId
});
this
.
$location
.
url
(
currentSection
.
url
);
this
.
onRouteUpdated
();
// Force dashboard reload after saving to update view
appEvents
.
on
(
'dashboard-saved'
,
()
=>
{
window
.
location
.
href
=
window
.
location
.
href
;
});
}
deleteDashboard
()
{
...
...
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