Browse Source
Fix adding to empty attributes and duplicate request
Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/32482/head
Julius Härtl
4 years ago
committed by
Carl Schwan
No known key found for this signature in database
GPG Key ID: C3AA6B3A5EFA7AC5
2 changed files with
2 additions and
2 deletions
-
apps/files_sharing/src/components/SharingEntry.vue
-
apps/files_sharing/src/models/Share.js
|
|
|
@ -428,9 +428,8 @@ export default { |
|
|
|
this.share.permissions = permissions |
|
|
|
if (this.share.hasDownloadPermission !== isDownloadChecked) { |
|
|
|
this.share.hasDownloadPermission = isDownloadChecked |
|
|
|
this.queueUpdate('attributes') |
|
|
|
} |
|
|
|
this.queueUpdate('permissions') |
|
|
|
this.queueUpdate('permissions', 'attributes') |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
@ -50,6 +50,7 @@ export default class Share { |
|
|
|
console.warn('Could not parse share attributes returned by server: "' + ocsData.attributes + '"') |
|
|
|
} |
|
|
|
} |
|
|
|
ocsData.attributes = ocsData.attributes ?? [] |
|
|
|
|
|
|
|
// store state
|
|
|
|
this._share = ocsData |
|
|
|
|