aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2023-12-27 22:40:07 -0500
committertusooa <tusooa@kazv.moe>2023-12-27 22:40:07 -0500
commitfd77270564959ab928e025f7f55b810e0470d5e1 (patch)
treef05d8d9f49f53e59b227a57cd87f45929e597fa7 /src
parent4777bec85fd5488c5c50d5452efe26a51f90f53e (diff)
Make user card group-aware
Diffstat (limited to 'src')
-rw-r--r--src/components/user_card/user_card.vue8
-rw-r--r--src/i18n/en.json1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue
index 2de14063..2c76a220 100644
--- 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
index a9b00856..bb93f26f 100644
--- 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",