mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
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:
parent
34063fc7ad
commit
7dcb487573
5 changed files with 8 additions and 8 deletions
|
|
@ -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
4
dist/2179-2179.js
vendored
File diff suppressed because one or more lines are too long
2
dist/2179-2179.js.map
vendored
2
dist/2179-2179.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue