commit: fd77270564959ab928e025f7f55b810e0470d5e1
parent 4777bec85fd5488c5c50d5452efe26a51f90f53e
Author: tusooa <tusooa@kazv.moe>
Date: Wed, 27 Dec 2023 22:40:07 -0500
Make user card group-aware
Diffstat:
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue
@@ -124,11 +124,17 @@
{{ $t(`general.role.${visibleRole}`) }}
</span>
<span
- v-if="user.bot"
+ v-if="user.actor_type === 'Service'"
class="alert user-role"
>
{{ $t('user_card.bot') }}
</span>
+ <span
+ v-if="user.actor_type === 'Group'"
+ class="alert user-role"
+ >
+ {{ $t('user_card.group') }}
+ </span>
</template>
<span v-if="user.locked">
<FAIcon
diff --git a/src/i18n/en.json b/src/i18n/en.json
@@ -1131,6 +1131,7 @@
"hide_repeats": "Hide repeats",
"show_repeats": "Show repeats",
"bot": "Bot",
+ "group": "Group",
"birthday": "Born {birthday}",
"admin_menu": {
"moderation": "Moderation",