1
0

fix(views): edit views with filters

This change fixes a bug where filter values of views would be transformed in the wrong order, not transformed at all or at the wrong time. Transforming the filters now happens transparently in the background without anything funky happening visible to the user.
This commit is contained in:
kolaente
2024-06-03 22:20:57 +02:00
parent 244ca262df
commit 68d233684f
3 changed files with 83 additions and 64 deletions

View File

@ -111,6 +111,7 @@ async function saveView() {
>
<XButton
:loading="projectViewService.loading"
:disabled="showCreateForm && newView.title === ''"
@click="createView"
>
{{ $t('project.views.create') }}
@ -144,22 +145,11 @@ async function saveView() {
<ViewEditForm
v-model="viewToEdit"
class="mb-4"
:loading="projectViewService.loading"
:show-save-buttons="true"
@cancel="viewToEdit = null"
@update:modelValue="saveView"
/>
<div class="is-flex is-justify-content-end">
<XButton
variant="tertiary"
class="mr-2"
@click="viewToEdit = null"
>
{{ $t('misc.cancel') }}
</XButton>
<XButton
:loading="projectViewService.loading"
@click="saveView"
>
{{ $t('misc.save') }}
</XButton>
</div>
</td>
</template>
<template v-else>