mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Revert latest change
This commit is contained in:
parent
90966a919a
commit
3b31102347
1 changed files with 16 additions and 22 deletions
|
@ -288,8 +288,6 @@ export default class PostsContextMenu extends Component {
|
||||||
@task
|
@task
|
||||||
*unschedulePostsTask() {
|
*unschedulePostsTask() {
|
||||||
const updatedModels = this.selectionList.availableModels;
|
const updatedModels = this.selectionList.availableModels;
|
||||||
try {
|
|
||||||
// Perform the bulk edit action to unschedule the posts
|
|
||||||
yield this.performBulkEdit('unschedule');
|
yield this.performBulkEdit('unschedule');
|
||||||
this.notifications.showNotification(this.#getToastMessage('unscheduled'), {type: 'success'});
|
this.notifications.showNotification(this.#getToastMessage('unscheduled'), {type: 'success'});
|
||||||
|
|
||||||
|
@ -309,11 +307,7 @@ export default class PostsContextMenu extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove posts that no longer match the filter
|
|
||||||
this.updateFilteredPosts();
|
this.updateFilteredPosts();
|
||||||
} catch (error) {
|
|
||||||
this.notifications.showAPIError(error, {key: `${this.type}.unschedule.failed`});
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue