mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +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
|
account = AccountStore.itemWithId @_proxy?.draft().accountId
|
||||||
@setState {enabledFields, account}
|
@setState {enabledFields, account}
|
||||||
|
|
||||||
_shouldShowFromField: (draft) ->
|
_shouldShowFromField: (draft) =>
|
||||||
return false unless draft
|
return false unless draft
|
||||||
return AccountStore.items().length > 1 and
|
account = AccountStore.itemWithId(draft.accountId)
|
||||||
draft.files.length is 0
|
return false unless account
|
||||||
|
return account.aliases.length > 1
|
||||||
|
|
||||||
_shouldEnableSubject: =>
|
_shouldEnableSubject: =>
|
||||||
return false unless @_proxy
|
return false unless @_proxy
|
||||||
|
|
Loading…
Reference in a new issue