Skip to content

Commit

Permalink
Merge pull request #33166 from Lukasdoe/master
Browse files Browse the repository at this point in the history
Add button disable on submit for login grant
  • Loading branch information
szaimen authored Jul 26, 2022
2 parents a9c23e1 + 1a81745 commit 9f77aba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/js/login/grant.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
})

0 comments on commit 9f77aba

Please sign in to comment.