Skip to content

Commit

Permalink
Merge pull request #3631 from hashicorp/b-ui-expand-definition
Browse files Browse the repository at this point in the history
UI Show full job definition by default
  • Loading branch information
DingoEatingFuzz committed Dec 7, 2017
2 parents a78a2e3 + f751230 commit b09974e
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 b09974e

Please sign in to comment.