mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(aliases): Show from field whenever aliases are present
This commit is contained in:
parent
433b218f48
commit
d8b3a09599
1 changed files with 4 additions and 3 deletions
|
@ -574,10 +574,11 @@ class ComposerView extends React.Component
|
|||
account = AccountStore.itemWithId @_proxy?.draft().accountId
|
||||
@setState {enabledFields, account}
|
||||
|
||||
_shouldShowFromField: (draft) ->
|
||||
_shouldShowFromField: (draft) =>
|
||||
return false unless draft
|
||||
return AccountStore.items().length > 1 and
|
||||
draft.files.length is 0
|
||||
account = AccountStore.itemWithId(draft.accountId)
|
||||
return false unless account
|
||||
return account.aliases.length > 1
|
||||
|
||||
_shouldEnableSubject: =>
|
||||
return false unless @_proxy
|
||||
|
|
Loading…
Reference in a new issue