mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 12:19:45 +08:00
Merge pull request #4060 from JSFernandes/mandatory_user_fields
Force users to select an option in required custom user dropdown fields
This commit is contained in:
commit
360a794335
|
@ -5,8 +5,6 @@ export default Ember.Component.extend({
|
||||||
layoutName: fmt('field.field_type', 'components/user-fields/%@'),
|
layoutName: fmt('field.field_type', 'components/user-fields/%@'),
|
||||||
|
|
||||||
noneLabel: function() {
|
noneLabel: function() {
|
||||||
if (!this.get('field.required')) {
|
return 'user_fields.none';
|
||||||
return 'user_fields.none';
|
}.property()
|
||||||
}
|
|
||||||
}.property('field.required')
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user