feat(account): display moved account on profile

closes #330
This commit is contained in:
三咲智子 2022-12-05 01:28:22 +08:00
parent f33b6b58cd
commit 2672af671c
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
4 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,30 @@
<script setup lang="ts">
import type { Account } from 'masto'
defineProps<{
account: Account
}>()
</script>
<template>
<div flex="~ col gap-2" p4>
<div flex="~ gap-1" justify-center>
<AccountInlineInfo :account="account" :link="false" />
{{ $t('account.moved_title') }}
</div>
<div flex>
<NuxtLink :to="getAccountRoute(account.moved as any)">
<AccountInfo :account="account.moved" />
</NuxtLink>
<div flex-auto />
<div flex items-center>
<NuxtLink :to="getAccountRoute(account.moved as any)">
<button btn-solid h-fit>
{{ $t('account.go_to_profile') }}
</button>
</NuxtLink>
</div>
</div>
</div>
</template>