summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkInviteCode.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2024-09-24 17:48:49 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2024-09-24 17:48:49 +0900
commit423bfc8798c424b0062a9c494437610bbba7539b (patch)
tree183fd69b650d8158b41584d6b692657bc6e15270 /packages/frontend/src/components/MkInviteCode.vue
parentUpdate CONTRIBUTING.md (diff)
downloadsharkey-423bfc8798c424b0062a9c494437610bbba7539b.tar.gz
sharkey-423bfc8798c424b0062a9c494437610bbba7539b.tar.bz2
sharkey-423bfc8798c424b0062a9c494437610bbba7539b.zip
:art:
Diffstat (limited to 'packages/frontend/src/components/MkInviteCode.vue')
-rw-r--r--packages/frontend/src/components/MkInviteCode.vue17
1 files changed, 7 insertions, 10 deletions
diff --git a/packages/frontend/src/components/MkInviteCode.vue b/packages/frontend/src/components/MkInviteCode.vue
index de51a98789..4aee64f78e 100644
--- a/packages/frontend/src/components/MkInviteCode.vue
+++ b/packages/frontend/src/components/MkInviteCode.vue
@@ -11,8 +11,14 @@ SPDX-License-Identifier: AGPL-3.0-only
<span v-else-if="isExpired" style="color: var(--error)">{{ i18n.ts.expired }}</span>
<span v-else style="color: var(--success)">{{ i18n.ts.unused }}</span>
</template>
+ <template #footer>
+ <div class="_buttons">
+ <MkButton v-if="!invite.used && !isExpired" primary rounded @click="copyInviteCode()"><i class="ti ti-copy"></i> {{ i18n.ts.copy }}</MkButton>
+ <MkButton v-if="!invite.used || moderator" danger rounded @click="deleteCode()"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
+ </div>
+ </template>
- <div class="_gaps_s" :class="$style.root">
+ <div :class="$style.root">
<div :class="$style.items">
<div>
<div :class="$style.label">{{ i18n.ts.invitationCode }}</div>
@@ -49,10 +55,6 @@ SPDX-License-Identifier: AGPL-3.0-only
<div><MkTime :time="invite.createdAt" mode="absolute"/></div>
</div>
</div>
- <div :class="$style.buttons">
- <MkButton v-if="!invite.used && !isExpired" primary rounded @click="copyInviteCode()"><i class="ti ti-copy"></i> {{ i18n.ts.copy }}</MkButton>
- <MkButton v-if="!invite.used || moderator" danger rounded @click="deleteCode()"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
- </div>
</div>
</MkFolder>
</template>
@@ -121,9 +123,4 @@ function copyInviteCode() {
width: var(--height);
height: var(--height);
}
-
-.buttons {
- display: flex;
- gap: 8px;
-}
</style>