Merge pull request #41141 from nextcloud/backport/41117/stable26

[stable26] fix(login): Fix JS error on login grant page
This commit is contained in:
Ferdinand Thiessen 2023-11-16 02:51:18 +01:00 committed by GitHub
commit bdd21c6b60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ document.querySelector('form').addEventListener('submit', function(e) {
if (wrapper === null) {
return
}
wrapper.getElementsByClassName('icon-confirm-white').forEach(function(el) {
Array.from(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