Add button for hiding/showing metadata

This commit is contained in:
2018-01-06 15:51:03 +00:00
parent 3deca81c1d
commit 0ab2e9e732
3 changed files with 32 additions and 13 deletions

View File

@@ -24,6 +24,8 @@ export default Controller.extend({
jsonShowTree: computed.equal('jsonView', 'tree'),
jsonShowSource: computed.equal('jsonView', 'source'),
metadataHidden: false,
actions: {
showJsonTree () {
@@ -34,6 +36,10 @@ export default Controller.extend({
this.set('jsonView', 'source');
},
toggleMetadata () {
this.toggleProperty('metadataHidden');
},
deleteItem () {
if (window.confirm('Sure?')) {
this.get('storage.client')