Skip to content

Commit 3d38e44

Browse files
authored
Merge pull request #63 from nextmcloud/nmc/4500-updating-sharing-label-runtime
Nmc/4500 updating sharing label runtime
2 parents 615b191 + 9dae4bc commit 3d38e44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mixins/ShareRequests.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default {
5858
}
5959
const share = new Share(request.data.ocs.data)
6060
emit('files_sharing:share:created', { share })
61+
emit('files:config:updated', { share })
6162
return share
6263
} catch (error) {
6364
console.error('Error while creating share', error)
@@ -92,6 +93,8 @@ export default {
9293
{ type: 'error' },
9394
)
9495
throw error
96+
} finally {
97+
emit('files:config:updated', { id })
9598
}
9699
},
97100

@@ -121,6 +124,8 @@ export default {
121124
}
122125
const message = error.response.data.ocs.meta.message
123126
throw new Error(message)
127+
} finally {
128+
emit('files:config:updated', { id })
124129
}
125130
},
126131
},

0 commit comments

Comments
 (0)