Implement indicator for groups

This commit is contained in:
tusooa 2023-12-27 22:54:44 -05:00
commit cc4aaccf38
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
6 changed files with 20 additions and 19 deletions

View file

@ -3,11 +3,13 @@ import StillImage from '../still-image/still-image.vue'
import { library } from '@fortawesome/fontawesome-svg-core'
import {
faRobot
faRobot,
faPeopleGroup
} from '@fortawesome/free-solid-svg-icons'
library.add(
faRobot
faRobot,
faPeopleGroup
)
const UserAvatar = {
@ -15,7 +17,7 @@ const UserAvatar = {
'user',
'betterShadow',
'compact',
'bot'
'showActorTypeIndicator'
],
data () {
return {

View file

@ -18,9 +18,14 @@
:class="{ '-compact': compact }"
/>
<FAIcon
v-if="bot"
v-if="showActorTypeIndicator && user?.actor_type === 'Service'"
icon="robot"
class="bot-indicator"
class="actor-type-indicator"
/>
<FAIcon
v-if="showActorTypeIndicator && user?.actor_type === 'Group'"
icon="people-group"
class="actor-type-indicator"
/>
</span>
</template>
@ -79,7 +84,7 @@
height: 100%;
}
.bot-indicator {
.actor-type-indicator {
position: absolute;
bottom: 0;
right: 0;