]> source.dussan.org Git - gitea.git/commit
Fix duplicate modals when clicking on "remove all" repository button (#24129)
authorHester Gong <hestergong@gmail.com>
Tue, 18 Apr 2023 16:49:49 +0000 (00:49 +0800)
committerGitHub <noreply@github.com>
Tue, 18 Apr 2023 16:49:49 +0000 (00:49 +0800)
commit7ca7590c39dd63b2f812ce3a85ef82c2f4797aea
tree3c5ce8761528c7b70d4cdb7fd5e400d7fcc5bf0e
parent2002584986aa2e2cfdc66e2c4f85b5222c582e34
Fix duplicate modals when clicking on "remove all" repository button (#24129)

Under Team tab of an organization, click on "remove all" repositories
button will trigger two modals. Because `data-modal-id` is not proerly
added.

Before:

https://user-images.githubusercontent.com/17645053/231988545-ac690b86-e3fe-4bf5-81c6-5ef09302e849.mov

After:

https://user-images.githubusercontent.com/17645053/231989678-53be4f91-fdc9-4bc5-ba11-a08aa4548e37.mov
templates/org/team/repositories.tmpl
web_src/js/features/common-global.js