Skip to content

Commit b09974e

Browse files
Merge pull request #3631 from hashicorp/b-ui-expand-definition
UI Show full job definition by default
2 parents a78a2e3 + f751230 commit b09974e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/app/components/json-viewer.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default Component.extend({
1111
classNames: ['json-viewer'],
1212

1313
json: null,
14-
expandDepth: 2,
14+
expandDepth: Infinity,
1515

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

3232
function embedViewer() {
33-
this.$().empty().append(this.get('formatter').render());
33+
this.$()
34+
.empty()
35+
.append(this.get('formatter').render());
3436
}

0 commit comments

Comments
 (0)