fix: display owner status

This commit is contained in:
Julian Krauser 2025-01-08 18:09:02 +01:00
parent a749bfb45e
commit c83b4670cc

View file

@ -3,7 +3,7 @@
<div class="bg-primary p-2 text-white flex flex-row justify-between items-center">
<p>
{{ user.firstname }} {{ user.lastname }} <small v-if="user.permissions_total.admin">(Admin)</small
><small v-if="isOwner"> (Owner)</small>
><small v-if="user.isOwner"> (Owner)</small>
</p>
<div class="flex flex-row">
<RouterLink
@ -65,7 +65,7 @@ export default defineComponent({
user: { type: Object as PropType<UserViewModel>, default: {} },
},
computed: {
...mapState(useAbilityStore, ["can", "isOwner"]),
...mapState(useAbilityStore, ["can"]),
},
methods: {
...mapActions(useModalStore, ["openModal"]),