Skip to content

Commit e7f7be2

Browse files
Subvjc21
authored andcommitted
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 076d89b commit e7f7be2

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
@@ -142,6 +142,8 @@ module.exports = Mn.View.extend({
142142
} else {
143143
this.ui.openidc.hide().find('input').prop('disabled', true);
144144
}
145+
146+
this.ui.openidc_restrict_users_enabled.trigger('change');
145147
},
146148

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

0 commit comments

Comments
 (0)