From a8d0c879c38e21a8e78db627119bf622d919ee75 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 19 Jul 2024 14:28:30 -0400 Subject: add skip secondary authorization option for public oauth2 clients (#31454) --- web_src/js/features/oauth2-settings.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 web_src/js/features/oauth2-settings.ts (limited to 'web_src/js/features') diff --git a/web_src/js/features/oauth2-settings.ts b/web_src/js/features/oauth2-settings.ts new file mode 100644 index 0000000000..1e62ca0096 --- /dev/null +++ b/web_src/js/features/oauth2-settings.ts @@ -0,0 +1,5 @@ +export function initOAuth2SettingsDisableCheckbox() { + for (const e of document.querySelectorAll('.disable-setting')) e.addEventListener('change', ({target}) => { + document.querySelector(e.getAttribute('data-target')).classList.toggle('disabled', target.checked); + }); +} -- cgit v1.2.3