fix: opening the list share dialog hangs everything

https://github.com/go-vikunja/frontend/issues/60
This commit is contained in:
kolaente 2022-06-16 22:03:58 +02:00
parent 346a6a568d
commit 978cb9769e
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -48,13 +48,13 @@
</td> </td>
</template> </template>
<td class="type"> <td class="type">
<template v-if="s.right === rights.ADMIN"> <template v-if="s.right === RIGHTS.ADMIN">
<span class="icon is-small"> <span class="icon is-small">
<icon icon="lock"/> <icon icon="lock"/>
</span> </span>
{{ $t('list.share.right.admin') }} {{ $t('list.share.right.admin') }}
</template> </template>
<template v-else-if="s.right === rights.READ_WRITE"> <template v-else-if="s.right === RIGHTS.READ_WRITE">
<span class="icon is-small"> <span class="icon is-small">
<icon icon="pen"/> <icon icon="pen"/>
</span> </span>
@ -75,20 +75,20 @@
v-model="selectedRight[s.id]" v-model="selectedRight[s.id]"
> >
<option <option
:selected="s.right === rights.READ" :selected="s.right === RIGHTS.READ"
:value="rights.READ" :value="RIGHTS.READ"
> >
{{ $t('list.share.right.read') }} {{ $t('list.share.right.read') }}
</option> </option>
<option <option
:selected="s.right === rights.READ_WRITE" :selected="s.right === RIGHTS.READ_WRITE"
:value="rights.READ_WRITE" :value="RIGHTS.READ_WRITE"
> >
{{ $t('list.share.right.readWrite') }} {{ $t('list.share.right.readWrite') }}
</option> </option>
<option <option
:selected="s.right === rights.ADMIN" :selected="s.right === RIGHTS.ADMIN"
:value="rights.ADMIN" :value="RIGHTS.ADMIN"
> >
{{ $t('list.share.right.admin') }} {{ $t('list.share.right.admin') }}
</option> </option>