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
97bd00c5
Commit
97bd00c5
authored
Dec 11, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: dashboard settings work progress
parent
008b9bb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
public/app/features/dashboard/settings/settings.html
+2
-3
public/app/features/dashboard/settings/settings.ts
+2
-0
No files found.
public/app/features/dashboard/settings/settings.html
View file @
97bd00c5
...
@@ -89,11 +89,10 @@
...
@@ -89,11 +89,10 @@
<div
ng-if=
"ctrl.dashboard.meta.canSave"
>
<div
ng-if=
"ctrl.dashboard.meta.canSave"
>
<div
class=
"p-b-2"
ng-if=
"ctrl.alertCount > 1"
>
<div
class=
"p-b-2"
ng-if=
"ctrl.alertCount > 1"
>
<h5>
This dashboard contains {{ctrl.alertCount}} alerts. Deleting this dashboard will also delete those alerts
</h5>
<h5>
This dashboard contains {{ctrl.alertCount}} alerts. Deleting this dashboard will also delete those alerts
</h5>
<input
type=
"text"
class=
"gf-form-input width-16"
style=
"display: inline-block;"
placeholder=
"Type DELETE to confirm"
<input
type=
"text"
class=
"gf-form-input width-16"
style=
"display: inline-block;"
placeholder=
"Type DELETE to confirm"
ng-model=
"ctrl.confirmText"
ng-change=
"ctrl.confirmTextChanged()"
>
ng-model=
"ctrl.confirmText"
ng-change=
"ctrl.confirmTextChanged()"
>
</div>
</div>
<button
class=
"btn btn-danger"
ng-click=
"ctrl.deleteDashboard()"
ng-disabled=
"ctrl.confirmValid"
>
<button
class=
"btn btn-danger"
ng-click=
"ctrl.deleteDashboard()"
ng-disabled=
"
!
ctrl.confirmValid"
>
<i
class=
"fa fa-trash"
></i>
<i
class=
"fa fa-trash"
></i>
Delete
Delete
</button>
</button>
...
...
public/app/features/dashboard/settings/settings.ts
View file @
97bd00c5
...
@@ -46,6 +46,8 @@ export class SettingsCtrl {
...
@@ -46,6 +46,8 @@ export class SettingsCtrl {
return
panel
.
alert
?
1
:
0
;
return
panel
.
alert
?
1
:
0
;
});
});
this
.
confirmValid
=
this
.
alertCount
===
0
;
this
.
onRouteUpdated
();
this
.
onRouteUpdated
();
$rootScope
.
onAppEvent
(
"$routeUpdate"
,
this
.
onRouteUpdated
.
bind
(
this
),
$scope
);
$rootScope
.
onAppEvent
(
"$routeUpdate"
,
this
.
onRouteUpdated
.
bind
(
this
),
$scope
);
}
}
...
...
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