From e7f7be2a2bcd13f51b2900f685114e48f244d7c0 Mon Sep 17 00:00:00 2001 From: Subv Date: Tue, 2 Jun 2020 18:52:08 -0500 Subject: [PATCH] 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. --- frontend/js/app/nginx/proxy/form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/js/app/nginx/proxy/form.js b/frontend/js/app/nginx/proxy/form.js index 16278ebe..3a99c4c1 100644 --- a/frontend/js/app/nginx/proxy/form.js +++ b/frontend/js/app/nginx/proxy/form.js @@ -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 () {