You've already forked joplin
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:
@@ -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)}`;
|
||||
|
||||
Reference in New Issue
Block a user