]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add button disable on submit for login grant 33166/head
authorLukas Döllerer <info@lukas-doellerer.de>
Thu, 7 Jul 2022 22:07:54 +0000 (00:07 +0200)
committerLukas Döllerer <info@lukas-doellerer.de>
Mon, 25 Jul 2022 14:19:35 +0000 (16:19 +0200)
Signed-off-by: Lukas Döllerer <info@lukas-doellerer.de>
core/js/login/grant.js

index c8913f937bb8309175167fea895a937fc06e6ca2..c458bbbab8488a49032b30279562a4bd8e9bb4c8 100644 (file)
@@ -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
        })
 })