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
ba3dbac5
Commit
ba3dbac5
authored
Dec 15, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: view json from share modal now works, #10217
parent
bd7837e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
public/app/features/dashboard/export/export_modal.ts
+7
-3
No files found.
public/app/features/dashboard/export/export_modal.ts
View file @
ba3dbac5
...
...
@@ -10,7 +10,7 @@ export class DashExportCtrl {
dismiss
:
()
=>
void
;
/** @ngInject */
constructor
(
private
dashboardSrv
,
datasourceSrv
,
private
$scope
)
{
constructor
(
private
dashboardSrv
,
datasourceSrv
,
private
$scope
,
private
$rootScope
)
{
this
.
exporter
=
new
DashboardExporter
(
datasourceSrv
);
this
.
exporter
.
makeExportable
(
this
.
dashboardSrv
.
getCurrent
()).
then
(
dash
=>
{
...
...
@@ -27,10 +27,14 @@ export class DashExportCtrl {
saveJson
()
{
var
clone
=
this
.
dash
;
let
editScope
=
this
.
$rootScope
.
$new
();
editScope
.
object
=
clone
;
this
.
$scope
.
$root
.
appEvent
(
'show-json-editor'
,
{
object
:
clone
,
this
.
$rootScope
.
appEvent
(
'show-modal'
,
{
src
:
'public/app/partials/edit_json.html'
,
scope
:
editScope
});
this
.
dismiss
();
}
}
...
...
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