Mailspring/internal_packages/composer/lib/fields.cjsx
Evan Morikawa 980199a703 feat(composer): participants collapse
Summary:
Participants now collapse Gmail style in the composer field.

New, more declarative system for how we deal with "focusedFields" on the
composer.

Extracted a `CollapsedParticipants` and `ExpandedParticipants` component.

Test Plan: TODO

Reviewers: dillon, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2013
2015-09-14 10:37:00 -04:00

18 lines
394 B
CoffeeScript

Fields =
To: "textFieldTo"
Cc: "textFieldCc"
Bcc: "textFieldBcc"
From: "fromField"
Subject: "textFieldSubject"
Body: "contentBody"
Fields.ParticipantFields = [Fields.To, Fields.Cc, Fields.Bcc, Fields.From]
Fields.Order =
"textFieldTo": 1
"textFieldCc": 2
"textFieldBcc": 3
"fromField": -1 # Not selectable
"textFieldSubject": 5
"contentBody": 6
module.exports = Fields