Commit 64b5153e by Torkel Ödegaard

fix: change view json to use the grafana built json viewer, fixes #9002

parent 7031f7e7
...@@ -135,9 +135,10 @@ export class DashNavCtrl { ...@@ -135,9 +135,10 @@ export class DashNavCtrl {
viewJson() { viewJson() {
var clone = this.dashboard.getSaveModelClone(); var clone = this.dashboard.getSaveModelClone();
var html = angular.toJson(clone, true);
var uri = "data:application/json;charset=utf-8," + encodeURIComponent(html); this.$rootScope.appEvent('show-json-editor', {
var newWindow = window.open(uri); object: clone,
});
} }
showSearch() { showSearch() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment