diff --git a/changelog/unreleased/bugfix-link-password-modal-empty-confirm.md b/changelog/unreleased/bugfix-link-password-modal-empty-confirm.md new file mode 100644 index 00000000000..ca83f7bf440 --- /dev/null +++ b/changelog/unreleased/bugfix-link-password-modal-empty-confirm.md @@ -0,0 +1,7 @@ +Bugfix: Disable confirm in the link password dialog until a password is entered + +The "Add password" / "Edit password" dialog for links could be confirmed with +an empty field, which removed the password from the link. The confirm button +is now disabled until a valid password is entered. + +https://github.com/owncloud/ocis/pull/13218 diff --git a/web/packages/web-app-files/src/components/Modals/SetLinkPasswordModal.vue b/web/packages/web-app-files/src/components/Modals/SetLinkPasswordModal.vue index f5907c5ba83..0a7d1f18830 100644 --- a/web/packages/web-app-files/src/components/Modals/SetLinkPasswordModal.vue +++ b/web/packages/web-app-files/src/components/Modals/SetLinkPasswordModal.vue @@ -10,13 +10,13 @@ class="oc-modal-body-input" @password-challenge-completed="$emit('update:confirmDisabled', false)" @password-challenge-failed="$emit('update:confirmDisabled', true)" - @keydown.enter.prevent="$emit('confirm')" + @keydown.enter.prevent="onEnter" @update:model-value="onInput" />