Skip to content

Commit

Permalink
Honor required attribute for widget and operator preferences on clien…
Browse files Browse the repository at this point in the history
…t side. See Wirecloud#291
  • Loading branch information
aarranz authored and Alejandro Rodriguez committed Jul 24, 2017
1 parent 9d07705 commit 508269c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/wirecloud/platform/static/js/wirecloud/UserPref.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
'defaultValue': this.meta.default,
'initiallyDisabled': this.readonly,
'initialValue': this.value,
'required': false
'required': this.meta.required
});

if (type === 'select') {
Expand Down
1 change: 1 addition & 0 deletions src/wirecloud/platform/static/js/wirecloud/UserPrefDef.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
Object.defineProperty(this, 'type', {value: type});
Object.defineProperty(this, 'label', {value: options.label});
Object.defineProperty(this, 'description', {value: options.description});
Object.defineProperty(this, 'required', {value: options.required});
Object.defineProperty(this, 'options', {value: options});

var default_value = '';
Expand Down

0 comments on commit 508269c

Please sign in to comment.