From 1a817453a29da7e6eca2442dac6c4998f7378824 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lukas=20D=C3=B6llerer?= Date: Fri, 8 Jul 2022 00:07:54 +0200 Subject: [PATCH] Add button disable on submit for login grant MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Lukas Döllerer --- core/js/login/grant.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/js/login/grant.js b/core/js/login/grant.js index c8913f937bb..c458bbbab84 100644 --- a/core/js/login/grant.js +++ b/core/js/login/grant.js @@ -6,5 +6,6 @@ document.querySelector('form').addEventListener('submit', function(e) { wrapper.getElementsByClassName('icon-confirm-white').forEach(function(el) { el.classList.remove('icon-confirm-white') el.classList.add(OCA.Theming && OCA.Theming.inverted ? 'icon-loading-small' : 'icon-loading-small-dark') + el.disabled = true }) }) -- 2.39.5