1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Improved accepting a folder share

This commit is contained in:
Laurent Cozic
2021-09-25 18:00:43 +01:00
parent 0175348868
commit 8ada059401
3 changed files with 27 additions and 2 deletions

View File

@ -200,6 +200,13 @@ export default class ShareService {
return this.api().exec('GET', 'api/share_users');
}
public setProcessingShareInvitationResponse(v: boolean) {
this.store.dispatch({
type: 'SHARE_INVITATION_RESPONSE_PROCESSING',
value: v,
});
}
public async respondInvitation(shareUserId: string, accept: boolean) {
if (accept) {
await this.api().exec('PATCH', `api/share_users/${shareUserId}`, null, { status: 1 });