feat: add roles into account header and info (#2265)
This commit is contained in:
parent
0719ad0afd
commit
22a1388d50
3 changed files with 25 additions and 0 deletions
23
components/account/AccountRoleIndicator.vue
Normal file
23
components/account/AccountRoleIndicator.vue
Normal file
|
@ -0,0 +1,23 @@
|
|||
<script setup lang="ts">
|
||||
interface Role {
|
||||
name: string
|
||||
color: string
|
||||
}
|
||||
|
||||
defineProps<{
|
||||
role: Role
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
flex="~ gap1" items-center
|
||||
class="border border-base rounded-md px-1"
|
||||
text-secondary-light
|
||||
>
|
||||
<slot name="prepend" />
|
||||
<div :style="`color: ${role.color}; border-color: ${role.color}`">
|
||||
{{ role.name }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue