Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
feat: Show the assignee for consumed tokens [MOSOWEB-95]
Browse files Browse the repository at this point in the history
  • Loading branch information
bakulf committed Nov 7, 2023
1 parent 7500fc2 commit 6a0ef1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/settings/SettingsInviteCodes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ const description = noInvites ? t('invites.no_codes.subtitle') : t('invites.subt
<div flex justify-between items-center b-b-1px p-4 m-b--1px>
<span>{{ code.token }}</span>
<div>
<button flex justify-between items-center @click="copy(code.token)">
<NuxtLink v-if="code.assigned" underline flex :href="`/@${code.assigned}`">
@{{ code.assigned }}
</NuxtLink>

<button v-if="!code.assigned" flex justify-between items-center @click="copy(code.token)">
<span v-if="copied && text === code.token" m-r-2 bg-primary text-base-light p-x-3 b-rd-10>{{ $t("invites.copied") }}</span>
<div i-ri:file-copy-line />
</button>
Expand Down

0 comments on commit 6a0ef1c

Please sign in to comment.