mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: When deleting dashboard show dashboard title in confirmation popup, Closes #860
This commit is contained in:
parent
d5ffe6acef
commit
978a345ad8
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user