Skip to content

Commit a1c989e

Browse files
fix(TSA): migrate NcTextField and NcPasswordField to modelValue API
Replace ':value' with ':modelValue' and '@update:value' with '@update:modelValue' for NcTextField and NcPasswordField. In @nextcloud/vue v9.0.0 the 'value' prop and 'update:value' event were renamed to 'modelValue' and 'update:modelValue' respectively. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent d60ecae commit a1c989e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/views/Settings/TSA.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
</NcCheckboxRadioSwitch>
1515

1616
<div v-if="enabled" class="tsa-config-container">
17-
<NcTextField :value="tsa_url"
17+
<NcTextField :modelValue="tsa_url"
1818
:label="t('libresign', 'TSA Server URL')"
1919
:placeholder="t('libresign', 'Enter the timestamp server URL')"
2020
:disabled="loading"
2121
:loading="loading"
2222
:error="!!errors.tsa_url"
2323
:helper-text="getHelperText('tsa_url')"
24-
@update:value="(value) => updateField('tsa_url', value)" />
24+
@update:modelValue="(value) => updateField('tsa_url', value)" />
2525

26-
<NcTextField :value="tsa_policy_oid"
26+
<NcTextField :modelValue="tsa_policy_oid"
2727
:label="t('libresign', 'TSA Policy OID')"
2828
:placeholder="t('libresign', 'Optional')"
2929
:disabled="loading"
3030
:loading="loading"
3131
:error="!!errors.tsa_policy_oid"
3232
:helper-text="getHelperText('tsa_policy_oid')"
33-
@update:value="(value) => updateField('tsa_policy_oid', value)" />
33+
@update:modelValue="(value) => updateField('tsa_policy_oid', value)" />
3434

3535
<NcSelect v-model="selectedAuthType"
3636
:options="authOptions"
@@ -40,23 +40,23 @@
4040
clearable />
4141

4242
<template v-if="tsa_auth_type === AUTH_TYPES.BASIC">
43-
<NcTextField :value="tsa_username"
43+
<NcTextField :modelValue="tsa_username"
4444
:label="t('libresign', 'Username')"
4545
:placeholder="t('libresign', 'Username')"
4646
:disabled="loading"
4747
:loading="loading"
4848
:error="!!errors.tsa_username"
4949
:helper-text="getHelperText('tsa_username')"
50-
@update:value="(value) => updateField('tsa_username', value)" />
50+
@update:modelValue="(value) => updateField('tsa_username', value)" />
5151

52-
<NcPasswordField :value="tsa_password"
52+
<NcPasswordField :modelValue="tsa_password"
5353
:label="t('libresign', 'Password')"
5454
:placeholder="t('libresign', 'Password')"
5555
:disabled="loading"
5656
:loading="loading"
5757
:error="!!errors.tsa_password"
5858
:helper-text="getHelperText('tsa_password')"
59-
@update:value="(value) => updateField('tsa_password', value)" />
59+
@update:modelValue="(value) => updateField('tsa_password', value)" />
6060
</template>
6161
</div>
6262
</NcSettingsSection>

0 commit comments

Comments
 (0)