Skip to content

Commit fb68c4c

Browse files
nfebenextcloud-command
authored andcommitted
fix(files_sharing): Allow removing password from link shares
Fixes regression from a28834b Signed-off-by: nfebe <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
1 parent 2348d99 commit fb68c4c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

apps/files_sharing/src/mixins/SharesMixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default {
182182
this.$set(this.share, 'newPassword', await GeneratePassword(true))
183183
} else {
184184
this.passwordProtectedState = false
185-
this.$delete(this.share, 'newPassword')
185+
this.$set(this.share, 'newPassword', '')
186186
}
187187
},
188188
},
@@ -342,7 +342,7 @@ export default {
342342

343343
if (propertyNames.includes('password')) {
344344
// reset password state after sync
345-
this.share.password = this.share.newPassword ?? ''
345+
this.share.password = this.share.newPassword || undefined
346346
this.$delete(this.share, 'newPassword')
347347

348348
// updates password expiration time after sync

dist/1489-1489.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/1489-1489.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)