Skip to content

Commit ff2d053

Browse files
fix(ExpirationRules): 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 the three NcTextField instances (maximum validity, renewal interval and expiry in days) so the auto-save callbacks are correctly triggered. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 879843a commit ff2d053

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/views/Settings/ExpirationRules.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class="sharing__input"
2020
:label="t('libresign', 'Maximum validity')"
2121
:placeholder="t('libresign', 'Maximum validity')"
22-
@update:value="saveMaximumValidity" />
22+
@update:modelValue="saveMaximumValidity" />
2323
</fieldset>
2424
<NcCheckboxRadioSwitch type="switch"
2525
v-model="enableRenewalInterval"
@@ -33,7 +33,7 @@
3333
class="sharing__input"
3434
:label="t('libresign', 'Renewal interval')"
3535
:placeholder="t('libresign', 'Renewal interval')"
36-
@update:value="saveRenewalInterval" />
36+
@update:modelValue="saveRenewalInterval" />
3737
</fieldset>
3838
<fieldset id="settings-certificate-validity" class="sharing__sub-section">
3939
{{ t('libresign', 'The length of time for which the generated certificate will be valid, in days.') }}
@@ -42,7 +42,7 @@
4242
class="sharing__input"
4343
:label="t('libresign', 'Expiration in days')"
4444
:placeholder="t('libresign', 'Expiration in days')"
45-
@update:value="saveExpiryInDays" />
45+
@update:modelValue="saveExpiryInDays" />
4646
</fieldset>
4747
</NcSettingsSection>
4848
</template>

0 commit comments

Comments
 (0)