mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-02 13:27:55 +08:00
fix(reset): fix the account reset button for K2
Summary: Depends on D3672 Test Plan: manual Reviewers: mark, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D3673
This commit is contained in:
parent
fcfae5d490
commit
5ab0173e78
3 changed files with 5 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
/* eslint global-require: 0*/
|
||||
import React from 'react';
|
||||
import fs from 'fs';
|
||||
|
||||
import {Actions} from 'nylas-exports'
|
||||
import ConfigSchemaItem from './config-schema-item';
|
||||
import WorkspaceSection from './workspace-section';
|
||||
import SendingSection from './sending-section';
|
||||
|
@ -32,14 +32,9 @@ class PreferencesGeneral extends React.Component {
|
|||
}
|
||||
|
||||
_resetEmailCache = () => {
|
||||
const dataPath = `${NylasEnv.getConfigDirPath()}/edgehill.db`
|
||||
fs.unlink(dataPath, (err) => {
|
||||
if (err) console.log(err)
|
||||
else this._reboot()
|
||||
})
|
||||
Actions.resetEmailCache()
|
||||
}
|
||||
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="container-general" style={{maxWidth: 600}}>
|
||||
|
|
2
src/K2
2
src/K2
|
@ -1 +1 @@
|
|||
Subproject commit da61c6533410534caa6ec7a2a401905795e6b0e0
|
||||
Subproject commit f141b7253a66d966c043bf0c33539ad2c1e8d308
|
|
@ -564,6 +564,8 @@ class Actions {
|
|||
static refreshAllSyncWorkers = ActionScopeGlobal;
|
||||
|
||||
static expandInitialSyncState = ActionScopeWindow;
|
||||
|
||||
static resetEmailCache = ActionScopeGlobal;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue