Make user card group-aware

This commit is contained in:
tusooa 2023-12-27 22:40:07 -05:00
parent 4777bec85f
commit fd77270564
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
2 changed files with 8 additions and 1 deletions

View File

@ -124,11 +124,17 @@
{{ $t(`general.role.${visibleRole}`) }} {{ $t(`general.role.${visibleRole}`) }}
</span> </span>
<span <span
v-if="user.bot" v-if="user.actor_type === 'Service'"
class="alert user-role" class="alert user-role"
> >
{{ $t('user_card.bot') }} {{ $t('user_card.bot') }}
</span> </span>
<span
v-if="user.actor_type === 'Group'"
class="alert user-role"
>
{{ $t('user_card.group') }}
</span>
</template> </template>
<span v-if="user.locked"> <span v-if="user.locked">
<FAIcon <FAIcon

View File

@ -1131,6 +1131,7 @@
"hide_repeats": "Hide repeats", "hide_repeats": "Hide repeats",
"show_repeats": "Show repeats", "show_repeats": "Show repeats",
"bot": "Bot", "bot": "Bot",
"group": "Group",
"birthday": "Born {birthday}", "birthday": "Born {birthday}",
"admin_menu": { "admin_menu": {
"moderation": "Moderation", "moderation": "Moderation",