mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-04 11:44:47 +08:00
fix(send-later): Check if draft is valid before scheduling send later
This commit is contained in:
parent
67ec8fb0e0
commit
2fedf886e6
3 changed files with 8 additions and 2 deletions
|
@ -11,6 +11,7 @@ export default class ActionBarPlugins extends React.Component {
|
|||
static propTypes = {
|
||||
draft: React.PropTypes.object,
|
||||
session: React.PropTypes.object,
|
||||
isValidDraft: React.PropTypes.func,
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
|
@ -69,6 +70,7 @@ export default class ActionBarPlugins extends React.Component {
|
|||
threadId: this.props.draft.threadId,
|
||||
draftClientId: this.props.draft.clientId,
|
||||
session: this.props.session,
|
||||
isValidDraft: this.props.isValidDraft,
|
||||
}}
|
||||
/>
|
||||
</span>
|
||||
|
|
|
@ -335,7 +335,11 @@ export default class ComposerView extends React.Component {
|
|||
_renderActionsRegion() {
|
||||
return (
|
||||
<div className="composer-action-bar-content">
|
||||
<ActionBarPlugins draft={this.props.draft} session={this.props.session} />
|
||||
<ActionBarPlugins
|
||||
draft={this.props.draft}
|
||||
session={this.props.session}
|
||||
isValidDraft={this._isValidDraft}
|
||||
/>
|
||||
|
||||
<button
|
||||
tabIndex={-1}
|
||||
|
|
2
src/pro
2
src/pro
|
@ -1 +1 @@
|
|||
Subproject commit 3a764c2f280a1b4b1c5de6be95b19cf45f8e7a11
|
||||
Subproject commit b6d195273280f6b78ee2a0f96780733958d6b996
|
Loading…
Add table
Reference in a new issue