Added alert for successfully scheduling a status

This commit is contained in:
mgabdev 2019-09-18 22:52:45 -04:00
parent d2e4a046af
commit 09a8778856
1 changed files with 7 additions and 0 deletions

View File

@ -144,6 +144,13 @@ export function handleComposeSubmit(dispatch, getState, response, status) {
const isScheduledStatus = response.data['scheduled_at'] !== undefined;
if (isScheduledStatus) {
dispatch(showAlertForError({
response: {
data: {},
status: 200,
statusText: 'Successfully scheduled status',
}
}));
dispatch(submitComposeSuccess({ ...response.data }));
return;
}