fix(files_sharing): Allow removing password from link shares

Fixes regression from a28834b163

Signed-off-by: nfebe <fenn25.fn@gmail.com>
This commit is contained in:
nfebe 2025-11-28 12:28:49 +01:00
parent 570c5228d6
commit 844cddd3fa

View file

@ -182,7 +182,7 @@ export default {
this.$set(this.share, 'newPassword', await GeneratePassword(true))
} else {
this.passwordProtectedState = false
this.$delete(this.share, 'newPassword')
this.$set(this.share, 'newPassword', '')
}
},
},
@ -342,7 +342,7 @@ export default {
if (propertyNames.includes('password')) {
// reset password state after sync
this.share.password = this.share.newPassword ?? ''
this.share.password = this.share.newPassword || undefined
this.$delete(this.share, 'newPassword')
// updates password expiration time after sync