Merge pull request #3631 from hashicorp/b-ui-expand-definition

UI Show full job definition by default
This commit is contained in:
Michael Lange 2017-12-07 14:42:01 -08:00 committed by GitHub
commit c1efbabce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'), {
@ -30,5 +30,7 @@ export default Component.extend({
});
function embedViewer() {
this.$().empty().append(this.get('formatter').render());
this.$()
.empty()
.append(this.get('formatter').render());
}