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
1e61eae9
Commit
1e61eae9
authored
Oct 19, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fixed save to file button in export modal, fixes #9586
parent
e8141b48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
public/app/features/dashboard/export/export_modal.ts
+5
-7
No files found.
public/app/features/dashboard/export/export_modal.ts
View file @
1e61eae9
///<reference path="../../../headers/common.d.ts" />
import
angular
from
'angular'
;
import
angular
from
'angular'
;
import
coreModule
from
'app/core/core_module
'
;
import
{
saveAs
}
from
'file-saver
'
;
import
coreModule
from
'app/core/core_module'
;
import
{
DashboardExporter
}
from
'./exporter'
;
import
{
DashboardExporter
}
from
'./exporter'
;
export
class
DashExportCtrl
{
export
class
DashExportCtrl
{
...
@@ -22,9 +21,8 @@ export class DashExportCtrl {
...
@@ -22,9 +21,8 @@ export class DashExportCtrl {
}
}
save
()
{
save
()
{
var
blob
=
new
Blob
([
angular
.
toJson
(
this
.
dash
,
true
)],
{
type
:
"application/json;charset=utf-8"
});
var
blob
=
new
Blob
([
angular
.
toJson
(
this
.
dash
,
true
)],
{
type
:
'application/json;charset=utf-8'
});
var
wnd
:
any
=
window
;
saveAs
(
blob
,
this
.
dash
.
title
+
'-'
+
new
Date
().
getTime
()
+
'.json'
);
wnd
.
saveAs
(
blob
,
this
.
dash
.
title
+
'-'
+
new
Date
().
getTime
()
+
'.json'
);
}
}
saveJson
()
{
saveJson
()
{
...
@@ -44,7 +42,7 @@ export function dashExportDirective() {
...
@@ -44,7 +42,7 @@ export function dashExportDirective() {
controller
:
DashExportCtrl
,
controller
:
DashExportCtrl
,
bindToController
:
true
,
bindToController
:
true
,
controllerAs
:
'ctrl'
,
controllerAs
:
'ctrl'
,
scope
:
{
dismiss
:
"&"
}
scope
:
{
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