Skip to content

Commit 9ee912b

Browse files
committed
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.
1 parent fe280a3 commit 9ee912b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/js/app/nginx/proxy/form.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ module.exports = Mn.View.extend({
104104
} else {
105105
this.ui.openidc.hide().find('input').prop('disabled', true);
106106
}
107+
108+
this.ui.openidc_restrict_users_enabled.trigger('change');
107109
},
108110

109111
'change @ui.openidc_restrict_users_enabled': function () {

0 commit comments

Comments
 (0)