Merge pull request #42067 from nextcloud/share-flow-improvments

Fix some silent share bugs
pull/42077/head
F. E Noel Nfebe 2 years ago committed by GitHub
commit 669cf65283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      apps/files_sharing/src/views/SharingDetailsTab.vue
  2. 13
      apps/files_sharing/src/views/SharingTab.vue
  3. 3
      dist/3502-3502.js
  4. 1
      dist/3502-3502.js.map
  5. 3
      dist/5211-5211.js
  6. 0
      dist/5211-5211.js.LICENSE.txt
  7. 1
      dist/5211-5211.js.map
  8. 4
      dist/files_sharing-files_sharing_tab.js
  9. 2
      dist/files_sharing-files_sharing_tab.js.map

@ -417,9 +417,13 @@ export default {
|| !!this.share.password
},
async set(enabled) {
// TODO: directly save after generation to make sure the share is always protected
this.share.password = enabled ? await GeneratePassword() : ''
this.$set(this.share, 'newPassword', this.share.password)
if (enabled) {
this.share.password = await GeneratePassword()
this.$set(this.share, 'newPassword', this.share.password)
} else {
this.share.password = ''
this.$delete(this.share, 'newPassword')
}
},
},
/**

@ -374,14 +374,13 @@ export default {
* @param {Function} resolve a function to execute after
*/
awaitForShare(share, resolve) {
let listComponent = this.$refs.shareList
// Only mail shares comes from the input, link shares
// are managed internally in the SharingLinkList component
if (share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL) {
listComponent = this.$refs.linkShareList
}
this.$nextTick(() => {
let listComponent = this.$refs.shareList
// Only mail shares comes from the input, link shares
// are managed internally in the SharingLinkList component
if (share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL) {
listComponent = this.$refs.linkShareList
}
const newShare = listComponent.$children.find(component => component.share === share)
if (newShare) {
resolve(newShare)

3
dist/3502-3502.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3
dist/5211-5211.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