mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 10:00:33 -04:00
fix: pass hide download attribute while creating the share to fix github issue 50788
Signed-off-by: yemkareems <yemkareems@gmail.com>
This commit is contained in:
parent
8035c8d6b8
commit
92a93393e1
2 changed files with 8 additions and 5 deletions
|
|
@ -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…
Reference in a new issue