Skip to content

Commit

Permalink
Readd hint and remove tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeister committed Apr 14, 2024
1 parent 01dadd1 commit bea5a22
Showing 1 changed file with 24 additions and 31 deletions.
55 changes: 24 additions & 31 deletions frontend/src/components/collaborator/CollaboratorForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,32 @@
<slot name="statusChange" />
</template>
</e-text-field>
<v-tooltip v-if="readonlyRole" eager bottom>
<span id="readonly">
{{ $tc('components.collaborator.collaboratorForm.roleHint') }}
</span>
<template #activator="{ on }">
<div tabindex="0" class="mt-3" v-on="on">
<e-select
v-model="localCollaboration.role"
path="role"
readonly
aria-readonly="true"
aria-describedby="readonly"
:items="items"
persistent-hint
item-value="key"
item-text="role"
vee-rules="required"
<e-select
v-if="readonlyRole"
v-model="localCollaboration.role"
path="role"
readonly
aria-readonly="true"
aria-describedby="readonly"
:items="items"
:hint="$tc('components.collaborator.collaboratorForm.roleHint')"
persistent-hint
item-value="key"
item-text="role"
vee-rules="required"
>
<template #selection="{ item }">
<span
>{{ item.role }} &middot;
<span class="grey--text"
><template v-for="icon in item.icons"
><v-icon :key="icon" x-small>{{ icon }}</v-icon
>&thinsp;</template
></span
>
<template #selection="{ item }">
<span
>{{ item.role }} &middot;
<span class="grey--text"
><template v-for="icon in item.icons"
><v-icon :key="icon" x-small>{{ icon }}</v-icon
>&thinsp;</template
></span
>
</span>
</template>
</e-select>
</div>
</span>
</template>
</v-tooltip>
</e-select>
<e-select
v-else
v-model="localCollaboration.role"
Expand Down

0 comments on commit bea5a22

Please sign in to comment.