1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Desktop, Clipper: Web Clipper now must request authorisation before accessing the application data

This commit is contained in:
Laurent Cozic
2021-06-22 19:57:04 +01:00
parent 638b3236cf
commit 67d9977489
19 changed files with 403 additions and 82 deletions

View File

@@ -91,6 +91,7 @@ export interface State {
editorNoteStatuses: any;
isInsertingNotes: boolean;
hasEncryptedItems: boolean;
needApiAuth: boolean;
// Extra reducer keys go here:
pluginService: PluginServiceState;
@@ -160,6 +161,7 @@ export const defaultState: State = {
editorNoteStatuses: {},
isInsertingNotes: false,
hasEncryptedItems: false,
needApiAuth: false,
pluginService: pluginServiceDefaultState,
shareService: shareServiceDefaultState,
@@ -1137,6 +1139,11 @@ const reducer = produce((draft: Draft<State> = defaultState, action: any) => {
draft.pluginsLegacy = newPluginsLegacy;
}
break;
case 'API_NEED_AUTH_SET':
draft.needApiAuth = action.value;
break;
}
} catch (error) {
error.message = `In reducer: ${error.message} Action: ${JSON.stringify(action)}`;