mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: remove dashboard from search result after dashboard deletion, Closes #753
This commit is contained in:
parent
d40e21a7e0
commit
bba3f3000f
@ -119,9 +119,10 @@ function (angular, _, config, $) {
|
||||
$scope.searchDashboards($scope.query.query);
|
||||
};
|
||||
|
||||
$scope.deleteDashboard = function(id, evt) {
|
||||
$scope.deleteDashboard = function(dash, evt) {
|
||||
evt.stopPropagation();
|
||||
$scope.emitAppEvent('delete-dashboard', { id: id });
|
||||
$scope.emitAppEvent('delete-dashboard', { id: dash.id });
|
||||
$scope.results.dashboards = _.without($scope.results.dashboards, dash);
|
||||
};
|
||||
|
||||
$scope.addMetricToCurrentDashboard = function (metricId) {
|
||||
|
@ -54,7 +54,7 @@
|
||||
<a ng-click="shareDashboard(row.id, row.id, $event)" config-modal="app/partials/dashLoaderShare.html">
|
||||
<i class="icon-share"></i> share
|
||||
</a>
|
||||
<a ng-click="deleteDashboard(row.id, $event)">
|
||||
<a ng-click="deleteDashboard(row, $event)">
|
||||
<i class="icon-remove"></i> delete
|
||||
</a>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user