Skip to content

Commit

Permalink
RESOLVES ISSUE #61: Fixed saving/save-index issues with JSON Editor. …
Browse files Browse the repository at this point in the history
…Added button for Save & Exit to JSONeditor.
  • Loading branch information
Vincent Orlowski committed Oct 11, 2018
1 parent 669b559 commit d1dafa8
Show file tree
Hide file tree
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
Expand Up @@ -408,7 +408,6 @@ export class Atlas3 extends MetricsPanelCtrl {
}catch(e){
this.json_content = json;
}
if(!json) return;
this.json_index = index;
}

Expand Down
3 changes: 3 additions & 0 deletions src/partials/json_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 d1dafa8

Please sign in to comment.