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>
pull/56915/head
nfebe 6 months ago committed by nextcloud-command
parent 34063fc7ad
commit 7dcb487573
  1. 4
      apps/files_sharing/src/mixins/SharesMixin.js
  2. 4
      dist/2179-2179.js
  3. 2
      dist/2179-2179.js.map
  4. 4
      dist/files_sharing-files_sharing_tab.js
  5. 2
      dist/files_sharing-files_sharing_tab.js.map

@ -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
Loading…
Cancel
Save