1
0

feat(views): add filter syntax docs to filter input in views

This commit is contained in:
kolaente 2024-06-18 17:13:12 +02:00
parent 72fa0ea25c
commit 78eb28b054
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -6,6 +6,7 @@ import {ref, onBeforeMount} from 'vue'
import {transformFilterStringForApi, transformFilterStringFromApi} from '@/helpers/filters' import {transformFilterStringForApi, transformFilterStringFromApi} from '@/helpers/filters'
import {useLabelStore} from '@/stores/labels' import {useLabelStore} from '@/stores/labels'
import {useProjectStore} from '@/stores/projects' import {useProjectStore} from '@/stores/projects'
import FilterInputDocs from '@/components/project/partials/FilterInputDocs.vue'
const { const {
modelValue, modelValue,
@ -141,8 +142,13 @@ function handleBubbleSave() {
v-model="view.filter" v-model="view.filter"
:project-id="view.projectId" :project-id="view.projectId"
:input-label="$t('project.views.filter')" :input-label="$t('project.views.filter')"
class="mb-1"
/> />
<div class="is-size-7 mb-3">
<FilterInputDocs />
</div>
<div <div
v-if="view.viewKind === 'kanban'" v-if="view.viewKind === 'kanban'"
class="field" class="field"
@ -211,7 +217,12 @@ function handleBubbleSave() {
v-model="view.bucketConfiguration[index].filter" v-model="view.bucketConfiguration[index].filter"
:project-id="view.projectId" :project-id="view.projectId"
:input-label="$t('project.views.filter')" :input-label="$t('project.views.filter')"
class="mb-2"
/> />
<div class="is-size-7">
<FilterInputDocs />
</div>
</div> </div>
</div> </div>
<div class="is-flex is-justify-content-end"> <div class="is-flex is-justify-content-end">