From 7ca7590c39dd63b2f812ce3a85ef82c2f4797aea Mon Sep 17 00:00:00 2001 From: Hester Gong Date: Wed, 19 Apr 2023 00:49:49 +0800 Subject: [PATCH] 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 | 8 ++++---- web_src/js/features/common-global.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index ac863f3a7b..0ffd50226f 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -25,8 +25,8 @@
- - + +
@@ -64,7 +64,7 @@ -