ScheduledStatuses: refactor ScheduleForm, display "Schedule" button in Composer, fixes #660

This commit is contained in:
Alex Gleason
2021-06-28 00:36:44 -05:00
parent 2939b9e495
commit df4aad3c74
3 changed files with 13 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ const mapStateToProps = state => ({
anyMedia: state.getIn(['compose', 'media_attachments']).size > 0,
isModalOpen: state.get('modal').modalType === 'COMPOSE',
maxTootChars: state.getIn(['instance', 'max_toot_chars']),
schedule: state.getIn(['instance', 'schedule']),
scheduledAt: state.getIn(['compose', 'schedule']),
scheduledStatusCount: state.get('scheduled_statuses').size,
});