Skip to content

Commit

Permalink
fix: show delegate button when the space has setup delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Dec 14, 2024
1 parent b6da2d1 commit 92754c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/ui/src/views/SpaceUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,12 @@ watch(
class="relative bg-skin-bg h-[16px] -top-3 rounded-t-[16px] md:hidden"
/>
<div class="absolute right-4 top-4 space-x-2 flex">
<UiButton @click="handleDelegateClick()"> Delegate </UiButton>
<UiButton
v-if="space.delegations.length"
@click="handleDelegateClick()"
>
Delegate
</UiButton>
<UiTooltip v-if="!isWhiteLabel" title="View profile">
<UiButton
:to="{ name: 'user', params: { user: user.id } }"
Expand Down

0 comments on commit 92754c3

Please sign in to comment.