Added alert for successfully scheduling a status
This commit is contained in:
parent
d2e4a046af
commit
09a8778856
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user