mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Force users to select an option in required custom user dropdown fields
This commit is contained in:
parent
67995b3926
commit
a225c0fbbb
@ -5,8 +5,6 @@ export default Ember.Component.extend({
|
||||
layoutName: fmt('field.field_type', 'components/user-fields/%@'),
|
||||
|
||||
noneLabel: function() {
|
||||
if (!this.get('field.required')) {
|
||||
return 'user_fields.none';
|
||||
}
|
||||
}.property('field.required')
|
||||
return 'user_fields.none';
|
||||
}.property()
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user