Skip to content

Commit

Permalink
fix(ui): display div for role instead of disabled select
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Aug 28, 2023
1 parent 8213628 commit 58fc07e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/views/project/Team.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }">
Expand Down

0 comments on commit 58fc07e

Please sign in to comment.