OpenIDC: Trigger the change event of the "restrict users" toggle when enabling/disabling oidc.

If this is not triggered and the OIDC toggle is enabled, the "disabled" property will be removed from the restricted user list input, causing an error when trying to submit the form without it.
This commit is contained in:
Subv
2020-06-02 18:52:08 -05:00
parent fe280a3e1e
commit 9ee912be01

View File

@@ -104,6 +104,8 @@ module.exports = Mn.View.extend({
} else {
this.ui.openidc.hide().find('input').prop('disabled', true);
}
this.ui.openidc_restrict_users_enabled.trigger('change');
},
'change @ui.openidc_restrict_users_enabled': function () {