From c5240d8ce0c89ce96fa4a491d0162d887e3d912c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 27 Aug 2023 17:54:33 +0200 Subject: [PATCH] Fix button loading spinner when activating repos (#2333) Fixes: https://github.com/woodpecker-ci/woodpecker/issues/2234 There is no internal `repo.id` for not enabled repos. Use the remote forge repo id instead. --- web/src/views/RepoAdd.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/views/RepoAdd.vue b/web/src/views/RepoAdd.vue index bdb552f96..3c1025333 100644 --- a/web/src/views/RepoAdd.vue +++ b/web/src/views/RepoAdd.vue @@ -17,7 +17,7 @@ v-if="!repo.active" class="ml-auto" :text="$t('repo.enable.enable')" - :is-loading="isActivatingRepo && repoToActivate?.id === repo.id" + :is-loading="isActivatingRepo && repoToActivate?.forge_remote_id === repo.forge_remote_id" @click="activateRepo(repo)" />