Add JSON tree view in addition to source preview

This commit is contained in:
2018-01-06 14:56:19 +00:00
parent cd8d32d812
commit 411613088a
9 changed files with 244 additions and 38 deletions

View File

@@ -20,7 +20,7 @@ export default Controller.extend({
return !!this.get('model.documentMetaData.type').match(/application\/json/i);
}),
jsonView: 'source',
jsonView: 'tree',
jsonShowTree: computed.equal('jsonView', 'tree'),
jsonShowSource: computed.equal('jsonView', 'source'),