Implement indicator for groups
This commit is contained in:
parent
fd77270564
commit
cc4aaccf38
6 changed files with 20 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue