fix(ui): display div for role instead of disabled select

This commit is contained in:
Denis Gukov 2023-08-28 11:44:04 +02:00
parent 821362831c
commit 58fc07e74c

View File

@ -51,9 +51,10 @@
item-value="slug"
item-text="title"
:style="{width: '200px'}"
:disabled="!can(USER_PERMISSIONS.manageProjectUsers)"
@change="updateProjectUser(item)"
v-if="can(USER_PERMISSIONS.manageProjectUsers)"
/>
<div v-else>{{ USER_ROLES.find(r => r.slug === item.role).title }}</div>
</template>
<template v-slot:item.actions="{ item }">