diff --git a/components/account/AccountFollowButton.vue b/components/account/AccountFollowButton.vue index 4584c804..b3765d2c 100644 --- a/components/account/AccountFollowButton.vue +++ b/components/account/AccountFollowButton.vue @@ -21,16 +21,14 @@ async function toggleFollow() { } } +const { t } = useI18n() + useCommand({ scope: 'Actions', - order: -2, - visible: () => command && enable, - - name: () => `${relationship?.following ? 'Unfollow' : 'Follow'} ${getShortHandle(account)}`, + name: () => `${relationship?.following ? t('account.unfollow') : t('account.follow')} ${getShortHandle(account)}`, icon: 'i-ri:star-line', - onActivate: () => toggleFollow(), }) @@ -44,7 +42,7 @@ useCommand({ rounded-full flex="~ gap2 center" font-500 w-30 h-fit py1 :class="relationship?.following ? 'text-base border-text-base' : 'text-inverted bg-primary border-primary'" :hover="relationship?.following ? 'border-red text-red' : 'bg-base border-primary text-primary'" @click="toggleFollow" >