Skip to content

Commit b2ffccd

Browse files
authored
Merge pull request #56914 from nextcloud/backport/56740/stable31
[stable31] fix(files_sharing): Allow removing password from link shares
2 parents aaa42a4 + 839070d commit b2ffccd

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/6194-6194.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/6194-6194.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)