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
bba3f300
Commit
bba3f300
authored
Sep 17, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search: remove dashboard from search result after dashboard deletion, Closes #753
parent
d40e21a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/app/controllers/search.js
+3
-2
src/app/partials/search.html
+1
-1
No files found.
src/app/controllers/search.js
View file @
bba3f300
...
...
@@ -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
)
{
...
...
src/app/partials/search.html
View file @
bba3f300
...
...
@@ -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>
...
...
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