1
0
Fork 0

fix: don't allow creating a new label from filter view

Resolves vikunja/frontend#1035
This commit is contained in:
kolaente 2023-05-30 19:54:01 +02:00
parent 8e2c76a33e
commit 4c969f0a42
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 6 additions and 1 deletions

View File

@ -147,6 +147,7 @@
<label class="label">{{ $t('task.attributes.labels') }}</label>
<div class="control labels-list">
<edit-labels
:creatable="false"
v-model="entities.labels"
@update:model-value="changeLabelFilter"
/>

View File

@ -7,7 +7,7 @@
:search-results="foundLabels"
@select="addLabel"
label="title"
:creatable="true"
:creatable="creatable"
@create="createAndAddLabel"
:create-placeholder="$t('task.label.createPlaceholder')"
v-model="labels"
@ -65,6 +65,10 @@ const props = defineProps({
disabled: {
default: false,
},
creatable: {
type: Boolean,
default: true,
},
})
const emit = defineEmits(['update:modelValue'])