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
978a345a
Commit
978a345a
authored
Sep 24, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashboard: When deleting dashboard show dashboard title in confirmation popup, Closes #860
parent
d5ffe6ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/app/controllers/dashboardNavCtrl.js
+1
-1
src/app/controllers/search.js
+1
-1
No files found.
src/app/controllers/dashboardNavCtrl.js
View file @
978a345a
...
...
@@ -93,7 +93,7 @@ function (angular, _, moment, config, store) {
};
$scope
.
deleteDashboard
=
function
(
evt
,
options
)
{
if
(
!
confirm
(
'
Are you sure you want to delete dashboard
?'
))
{
if
(
!
confirm
(
'
Do you want to delete dashboard '
+
options
.
title
+
'
?'
))
{
return
;
}
...
...
src/app/controllers/search.js
View file @
978a345a
...
...
@@ -121,7 +121,7 @@ function (angular, _, config, $) {
$scope
.
deleteDashboard
=
function
(
dash
,
evt
)
{
evt
.
stopPropagation
();
$scope
.
emitAppEvent
(
'delete-dashboard'
,
{
id
:
dash
.
id
});
$scope
.
emitAppEvent
(
'delete-dashboard'
,
{
id
:
dash
.
id
,
title
:
dash
.
title
});
$scope
.
results
.
dashboards
=
_
.
without
(
$scope
.
results
.
dashboards
,
dash
);
};
...
...
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