1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +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

@ -32,6 +32,7 @@ export interface WhenClauseContext {
folderIsShared: boolean;
folderIsShareRoot: boolean;
joplinServerConnected: boolean;
joplinCloudAccountType: number;
hasMultiProfiles: boolean;
noteIsReadOnly: boolean;
folderIsReadOnly: boolean;
@ -87,6 +88,7 @@ export default function stateToWhenClauseContext(state: State, options: WhenClau
folderIsShared: commandFolder ? !!commandFolder.share_id : false,
joplinServerConnected: [9, 10].includes(settings['sync.target']),
joplinCloudAccountType: settings['sync.target'] === 10 ? settings['sync.10.accountType'] : 0,
hasMultiProfiles: state.profileConfig && state.profileConfig.profiles.length > 1,