diff --git a/frontend/src/lib/post/framework/ui/PostManagementPage.svelte b/frontend/src/lib/post/framework/ui/PostManagementPage.svelte index 01ac636..554b96f 100644 --- a/frontend/src/lib/post/framework/ui/PostManagementPage.svelte +++ b/frontend/src/lib/post/framework/ui/PostManagementPage.svelte @@ -26,6 +26,7 @@ const state = await createPost(params); if (state.isSuccess()) { + loadPosts({ showUnpublished: true }); toast.success(`Post created successfully with ID: ${state.data.id}`); } else if (state.isError()) { toast.error('Failed to create post', { @@ -56,13 +57,15 @@ {#each postsListedState.data as postInfo (postInfo.id)} {postInfo.id} - {postInfo.title} - - {#each postInfo.labels as label (label.id)} - - {/each} + {postInfo.title} + +
+ {#each postInfo.labels as label (label.id)} + + {/each} +
- {postInfo.formattedPublishedTime || '---'} + {postInfo.formattedPublishedTime}
{/each} {/if}