Skip to content

Commit

Permalink
Merge pull request #62 from veorlo/json-editor-saving-bug
Browse files Browse the repository at this point in the history
JSON Editor Saving: Issue #61
  • Loading branch information
sreemukha authored Oct 12, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 30b2226 + d1dafa8 commit 80152ae
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/atlas3.js
Original file line number Diff line number Diff line change
@@ -408,7 +408,6 @@ export class Atlas3 extends MetricsPanelCtrl {
}catch(e){
this.json_content = json;
}
if(!json) return;
this.json_index = index;
}

3 changes: 3 additions & 0 deletions src/partials/json_editor.html
Original file line number Diff line number Diff line change
@@ -27,6 +27,9 @@ <h5 class="gf-tabs-link">
<button class="btn btn-secondary" ng-click="ctrl.saveToMapSrc(ctrl.json_index);">
<i class="fa fa-save"></i>&nbsp;Save
</button>
<button class="btn btn-secondary" ng-click="ctrl.saveToMapSrc(ctrl.json_index); dismiss()">
<i class="fa fa-save"></i>&nbsp;Save &amp; Exit
</button>
</div>
</div>
</div>

0 comments on commit 80152ae

Please sign in to comment.