diff --git a/ui/console-src/modules/contents/posts/PostList.vue b/ui/console-src/modules/contents/posts/PostList.vue index 958cbdf564..130d7c5d9c 100644 --- a/ui/console-src/modules/contents/posts/PostList.vue +++ b/ui/console-src/modules/contents/posts/PostList.vue @@ -28,6 +28,7 @@ import UserFilterDropdown from "@/components/filter/UserFilterDropdown.vue"; import CategoryFilterDropdown from "@/components/filter/CategoryFilterDropdown.vue"; import TagFilterDropdown from "@/components/filter/TagFilterDropdown.vue"; import PostListItem from "./components/PostListItem.vue"; +import PostBatchSettingModal from "./components/PostBatchSettingModal.vue"; const { t } = useI18n(); @@ -320,6 +321,23 @@ const handleCancelPublishInBatch = async () => { }); }; +// Batch settings +const batchSettingModalVisible = ref(false); +const batchSettingPosts = ref([]); + +function handleOpenBatchSettingModal() { + batchSettingPosts.value = selectedPostNames.value.map((name) => { + return posts.value?.find((post) => post.post.metadata.name === name); + }) as ListedPost[]; + + batchSettingModalVisible.value = true; +} + +function onBatchSettingModalClose() { + batchSettingModalVisible.value = false; + batchSettingPosts.value = []; +} + watch( () => selectedPostNames.value, (newValue) => { @@ -342,6 +360,11 @@ watch( +