From 8bdd23e1ccef6d19e18619b9b47f12e0a622954d Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Wed, 12 Apr 2023 15:53:17 +0200 Subject: [PATCH] Improved bulk delete and unpublish modals copy refs https://github.com/TryGhost/Team/issues/2677 --- ghost/admin/app/components/posts-list/context-menu.js | 9 +++------ .../app/components/posts-list/modals/delete-posts.hbs | 6 +++--- .../components/posts-list/modals/edit-posts-access.hbs | 2 +- .../app/components/posts-list/modals/unpublish-posts.hbs | 4 ++-- ghost/admin/app/utils/selection-list.js | 4 ++++ 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ghost/admin/app/components/posts-list/context-menu.js b/ghost/admin/app/components/posts-list/context-menu.js index 34c4e54f79..158caa3e58 100644 --- a/ghost/admin/app/components/posts-list/context-menu.js +++ b/ghost/admin/app/components/posts-list/context-menu.js @@ -27,8 +27,7 @@ export default class PostsContextMenu extends Component { async deletePosts() { this.menu.close(); await this.modals.open(DeletePostsModal, { - isSingle: this.selectionList.isSingle, - count: this.selectionList.count, + selectionList: this.selectionList, confirm: this.deletePostsTask }); } @@ -37,8 +36,7 @@ export default class PostsContextMenu extends Component { async unpublishPosts() { this.menu.close(); await this.modals.open(UnpublishPostsModal, { - isSingle: this.selectionList.isSingle, - count: this.selectionList.count, + selectionList: this.selectionList, confirm: this.unpublishPostsTask }); } @@ -47,8 +45,7 @@ export default class PostsContextMenu extends Component { async editPostsAccess() { this.menu.close(); await this.modals.open(EditPostsAccessModal, { - isSingle: this.selectionList.isSingle, - count: this.selectionList.count, + selectionList: this.selectionList, confirm: this.editPostsAccessTask }); } diff --git a/ghost/admin/app/components/posts-list/modals/delete-posts.hbs b/ghost/admin/app/components/posts-list/modals/delete-posts.hbs index 8a38224ae3..089ed0154a 100644 --- a/ghost/admin/app/components/posts-list/modals/delete-posts.hbs +++ b/ghost/admin/app/components/posts-list/modals/delete-posts.hbs @@ -1,13 +1,13 @@