mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(prefs): Use labels instead of email addresses
This commit is contained in:
parent
ec0690fdc7
commit
4bf36ebe36
2 changed files with 4 additions and 4 deletions
|
@ -42,11 +42,11 @@ export default class PreferencesSignatures extends React.Component {
|
|||
|
||||
_renderAccountPicker() {
|
||||
const options = this.state.accounts.map(account =>
|
||||
<option value={account.id} key={account.id}>{account.emailAddress}</option>
|
||||
<option value={account.id} key={account.id}>{account.label}</option>
|
||||
);
|
||||
|
||||
return (
|
||||
<select value={this.state.currentAccountId} onChange={this._onSelectAccount}>
|
||||
<select value={this.state.currentAccountId} onChange={this._onSelectAccount} style={{minWidth: 200}}>
|
||||
{options}
|
||||
</select>
|
||||
);
|
||||
|
|
|
@ -134,14 +134,14 @@ class PreferencesMailRules extends React.Component {
|
|||
|
||||
_renderAccountPicker() {
|
||||
const options = this.state.accounts.map(account =>
|
||||
<option value={account.accountId} key={account.accountId}>{account.emailAddress}</option>
|
||||
<option value={account.accountId} key={account.accountId}>{account.label}</option>
|
||||
);
|
||||
|
||||
return (
|
||||
<select
|
||||
value={this.state.currentAccount.accountId}
|
||||
onChange={this._onSelectAccount}
|
||||
style={{margin: 0}}
|
||||
style={{margin: 0, minWidth: 200}}
|
||||
>
|
||||
{options}
|
||||
</select>
|
||||
|
|
Loading…
Reference in a new issue