From ae5796271c5c3a759050bc370bce4736a6463eb5 Mon Sep 17 00:00:00 2001 From: "Vladimir Pal (BeDoIt)" Date: Wed, 21 Mar 2018 17:44:05 +0200 Subject: [PATCH] fix: clear cache in menu --- .../AuthForm/AuthDebugger/AuthDebugger.jsx | 13 ++ .../SettingsModal/General/GeneralSettings.jsx | 2 +- app/menu.js | 39 ++++- app/sagas/index.js | 2 + app/sagas/initializeApp.js | 19 +++ app/sagas/issues.js | 1 - app/sagas/settings.js | 43 +++--- yarn.lock | 136 ++++++++++++++---- 8 files changed, 198 insertions(+), 57 deletions(-) diff --git a/app/containers/AuthForm/AuthDebugger/AuthDebugger.jsx b/app/containers/AuthForm/AuthDebugger/AuthDebugger.jsx index cb4ff7612..a4be34619 100644 --- a/app/containers/AuthForm/AuthDebugger/AuthDebugger.jsx +++ b/app/containers/AuthForm/AuthDebugger/AuthDebugger.jsx @@ -13,6 +13,9 @@ import type { Connector, } from 'react-redux'; +import { + settingsActions, +} from 'actions'; import { getUiState, } from 'selectors'; @@ -32,6 +35,7 @@ import CopyIcon from '@atlaskit/icon/glyph/copy'; import FileIcon from '@atlaskit/icon/glyph/file'; import CrossIcon from '@atlaskit/icon/glyph/cross'; import ShortcutIcon from '@atlaskit/icon/glyph/shortcut'; +import EditorRemoveIcon from '@atlaskit/icon/glyph/editor/remove'; import { AuthDebuggerContainer, @@ -59,6 +63,15 @@ const AuthDebugger: StatelessFunctionalComponent = ({ Auth debug console 📺 + + { + dispatch( + settingsActions.clearElectronCache(), + ); + }} + /> + ipcRenderer.send('copy-login-debug', messages)} /> diff --git a/app/containers/Modals/SettingsModal/General/GeneralSettings.jsx b/app/containers/Modals/SettingsModal/General/GeneralSettings.jsx index ea89229ed..3a5bc5d5a 100644 --- a/app/containers/Modals/SettingsModal/General/GeneralSettings.jsx +++ b/app/containers/Modals/SettingsModal/General/GeneralSettings.jsx @@ -66,7 +66,7 @@ const GeneralSettings: StatelessFunctionalComponent = ({