mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-30 20:07:48 +08:00
Add a basic “manage contacts” button to the account settings page #1895
This commit is contained in:
parent
c02d400ea4
commit
efd6c72a74
1 changed files with 13 additions and 5 deletions
|
@ -164,6 +164,10 @@ class PreferencesAccountDetails extends Component<
|
|||
AppEnv.mailsyncBridge.resetCacheForAccount(this.state.account);
|
||||
};
|
||||
|
||||
_onManageContacts = () => {
|
||||
ipcRenderer.send('command', 'application:show-contacts', {});
|
||||
};
|
||||
|
||||
_onContactSupport = () => {
|
||||
shell.openExternal('https://support.getmailspring.com/hc/en-us/requests/new');
|
||||
};
|
||||
|
@ -266,12 +270,16 @@ class PreferencesAccountDetails extends Component<
|
|||
undefined
|
||||
)}
|
||||
<h6>{localized('Account Settings')}</h6>
|
||||
<div className="btn" onClick={this._onReconnect}>
|
||||
{account.provider === 'imap'
|
||||
? localized('Update Connection Settings...')
|
||||
: localized('Re-authenticate...')}
|
||||
<div className="btn" onClick={this._onManageContacts}>
|
||||
{localized('Manage Contacts')}
|
||||
</div>
|
||||
<div className="btn" style={{ margin: 6 }} onClick={this._onResetCache}>
|
||||
<div className="btn" style={{ marginLeft: 6 }} onClick={this._onReconnect}>
|
||||
{account.provider === 'gmail'
|
||||
? localized('Re-authenticate...')
|
||||
: localized('Update Connection Settings...')}
|
||||
</div>
|
||||
<h6>{localized('Local Data')}</h6>
|
||||
<div className="btn" onClick={this._onResetCache}>
|
||||
{localized('Rebuild Cache...')}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue