Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/mixins/ShareRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default {
}
const share = new Share(request.data.ocs.data)
emit('files_sharing:share:created', { share })
emit('files:config:updated', { share })
return share
} catch (error) {
console.error('Error while creating share', error)
Expand Down Expand Up @@ -92,6 +93,8 @@ export default {
{ type: 'error' },
)
throw error
} finally {
emit('files:config:updated', { id })
}
},

Expand Down Expand Up @@ -121,6 +124,8 @@ export default {
}
const message = error.response.data.ocs.meta.message
throw new Error(message)
} finally {
emit('files:config:updated', { id })
}
},
},
Expand Down
Loading