fix: pass hide download attribute while creating the share to fix github issue 50788

Signed-off-by: yemkareems <yemkareems@gmail.com>
pull/51250/head
yemkareems 7 months ago committed by Ferdinand Thiessen
parent 8035c8d6b8
commit 92a93393e1
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
  1. 4
      apps/files_sharing/src/mixins/SharesMixin.js
  2. 9
      apps/files_sharing/src/views/SharingDetailsTab.vue

@ -278,7 +278,9 @@ export default {
// force value to string because that is what our
// share api controller accepts
propertyNames.forEach(name => {
if ((typeof this.share[name]) === 'object') {
if (this.share[name] === null || this.share[name] === undefined) {
properties[name] = ''
} else if ((typeof this.share[name]) === 'object') {
properties[name] = JSON.stringify(this.share[name])
} else {
properties[name] = this.share[name].toString()

@ -1008,12 +1008,13 @@ export default {
this.creating = false
this.share = share
this.$emit('add:share', this.share)
} else {
this.$emit('update:share', this.share)
emit('update:share', this.share)
this.queueUpdate(...permissionsAndAttributes)
}
// Let's update after creation as some attrs are only available after creation
this.$emit('update:share', this.share)
emit('update:share', this.share)
this.queueUpdate(...permissionsAndAttributes)
await this.getNode()
emit('files:node:updated', this.node)

Loading…
Cancel
Save