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 committed by Jamie Curnow
parent 076d89b5b5
commit e7f7be2a2b

View File

@ -142,6 +142,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 () {