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
393f41cd
Unverified
Commit
393f41cd
authored
Jun 05, 2018
by
Alexander Zobnin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add Import button to manage page
parent
4063ae37
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
public/app/core/components/manage_dashboards/manage_dashboards.html
+4
-0
public/app/core/components/manage_dashboards/manage_dashboards.ts
+10
-0
No files found.
public/app/core/components/manage_dashboards/manage_dashboards.html
View file @
393f41cd
...
...
@@ -13,6 +13,10 @@
<i
class=
"fa fa-plus"
></i>
Folder
</a>
<a
class=
"btn btn-success"
href=
"{{ctrl.importDashboardUrl()}}"
ng-if=
"ctrl.hasEditPermissionInFolders || ctrl.canSave"
>
<i
class=
"fa fa-plus"
></i>
Import
</a>
</div>
<div
class=
"page-action-bar page-action-bar--narrow"
ng-show=
"ctrl.hasFilters"
>
...
...
public/app/core/components/manage_dashboards/manage_dashboards.ts
View file @
393f41cd
...
...
@@ -294,6 +294,16 @@ export class ManageDashboardsCtrl {
return
url
;
}
importDashboardUrl
()
{
let
url
=
'dashboard/import'
;
if
(
this
.
folderId
)
{
url
+=
`?folderId=
${
this
.
folderId
}
`
;
}
return
url
;
}
}
export
function
manageDashboardsDirective
()
{
...
...
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