fix(files_sharing): Allow removing password from link shares

Fixes regression from a28834b163

Signed-off-by: nfebe <fenn25.fn@gmail.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
nfebe 2025-11-28 12:28:49 +01:00 committed by nextcloud-command
parent 34063fc7ad
commit 7dcb487573
5 changed files with 8 additions and 8 deletions

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

4
dist/2179-2179.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long