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.
This commit is contained in:
Robert Kaussow 2023-08-27 17:54:33 +02:00 committed by GitHub
parent 2e7f969fac
commit c5240d8ce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)"
/>
</ListItem>