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

Desktop: Fixes #8844: Hide option to share a notebook when it is not available

This commit is contained in:
Laurent Cozic
2023-09-12 19:14:52 +01:00
parent efd7cc7a6b
commit b9f36705ff
4 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,7 @@ interface UserApiResponse {
};
inbox_email?: string;
can_use_share_permissions?: number;
account_type?: number;
}
const userFetcher = async () => {
@ -31,6 +32,7 @@ const userFetcher = async () => {
Setting.setValue('sync.10.inboxId', owner.inbox ? owner.inbox.jop_id : '');
Setting.setValue('sync.10.inboxEmail', owner.inbox_email ? owner.inbox_email : '');
Setting.setValue('sync.10.canUseSharePermissions', !!owner.can_use_share_permissions);
Setting.setValue('sync.10.accountType', owner.account_type);
};
// Listen to the event only once