28 lines
815 B
Vue
28 lines
815 B
Vue
|
<template>
|
||
|
<div class="flex flex-col h-fit w-full border border-primary rounded-md">
|
||
|
<div class="bg-primary p-2 text-white flex flex-row justify-between items-center">
|
||
|
<p>{{ role.role }} <small v-if="role.permissions?.isAdmin">(Admin)</small></p>
|
||
|
<PencilIcon class="w-5 h-5 p-1 box-content cursor-pointer" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
import { defineComponent, type PropType } from "vue";
|
||
|
import { mapState, mapActions } from "pinia";
|
||
|
import { PencilIcon } from "@heroicons/vue/outline";
|
||
|
import type { RoleViewModel } from "@/viewmodels/admin/role.models";
|
||
|
</script>
|
||
|
|
||
|
<script lang="ts">
|
||
|
export default defineComponent({
|
||
|
props: {
|
||
|
role: { type: Object as PropType<RoleViewModel>, default: {} },
|
||
|
},
|
||
|
data() {
|
||
|
return {};
|
||
|
},
|
||
|
mounted() {},
|
||
|
});
|
||
|
</script>
|