Skip to content

Commit 58a9e26

Browse files
fix(CertificateCustonOptions): replace Vue 2 @update:value with @update:modelValue on NcTextField
NcTextField changed its emit from `update:value` to `update:modelValue` in @nextcloud/vue v9 (Vue 3). Replace @update:value with @update:modelValue on both NcTextField instances (array items and single text fields) so the validation callbacks fire correctly when the user edits certificate fields. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent ff2d053 commit 58a9e26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/views/Settings/CertificateCustonOptions.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<NcTextField :id="`${certificate.id}-${index}`"
5555
v-model="certificate.value[index]"
5656
:placeholder="t('libresign', 'Item {index}', {index: index + 1})"
57-
@update:value="validateArray(certificate.id)" />
57+
@update:modelValue="validateArray(certificate.id)" />
5858
<NcButton v-if="certificate.value.length > 1"
5959
:aria-label="t('libresign', 'Remove')"
6060
@click="removeArrayEntry(certificate.id, index)">
@@ -73,7 +73,7 @@
7373
:maxlength="getOptionProperty(certificate.id, 'max')"
7474
:label="getOptionProperty(certificate.id, 'label')"
7575
:helper-text="getOptionProperty(certificate.id, 'helperText')"
76-
@update:value="validate(certificate.id)" />
76+
@update:modelValue="validate(certificate.id)" />
7777
<NcButton :aria-label="t('libresign', 'Remove custom name entry from root certificate')"
7878
@click="removeOptionalAttribute(certificate.id)">
7979
<template #icon>

0 commit comments

Comments
 (0)