Skip to content

Commit

Permalink
Expand the entire job definition by default
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed Dec 7, 2017
1 parent 34e6f44 commit f751230
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/app/components/json-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default Component.extend({
classNames: ['json-viewer'],

json: null,
expandDepth: 2,
expandDepth: Infinity,

formatter: computed('json', 'expandDepth', function() {
return new JSONFormatter(this.get('json'), this.get('expandDepth'), {
Expand All @@ -30,5 +30,7 @@ export default Component.extend({
});

function embedViewer() {
this.$().empty().append(this.get('formatter').render());
this.$()
.empty()
.append(this.get('formatter').render());
}

0 comments on commit f751230

Please sign in to comment.