From ad28175287c1a5df9b715c0755ed040985314960 Mon Sep 17 00:00:00 2001 From: vnugent Date: Fri, 22 Dec 2023 01:30:01 -0500 Subject: integrate big package updates prep for release --- front-end/src/views/Blog/components/Channels/ChannelEdit.vue | 4 ++-- front-end/src/views/Blog/components/Posts.vue | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'front-end/src/views') diff --git a/front-end/src/views/Blog/components/Channels/ChannelEdit.vue b/front-end/src/views/Blog/components/Channels/ChannelEdit.vue index 0363746..f27aaaf 100644 --- a/front-end/src/views/Blog/components/Channels/ChannelEdit.vue +++ b/front-end/src/views/Blog/components/Channels/ChannelEdit.vue @@ -9,7 +9,7 @@

Edit Channel

Create Channel

-

+

Your root directory and index file name must be unique within your S3 bucket.

@@ -31,7 +31,7 @@

Edit Feed

Create Feed

-

+

Optionally define the rss feed for this channel. If you do not configure the feed, posts to this channel will not be published to an rss feed, you may configure this feed at any time.

diff --git a/front-end/src/views/Blog/components/Posts.vue b/front-end/src/views/Blog/components/Posts.vue index f07e576..5c345f4 100644 --- a/front-end/src/views/Blog/components/Posts.vue +++ b/front-end/src/views/Blog/components/Posts.vue @@ -39,16 +39,20 @@ const { items, pagination } = store.posts.createPages(); //Open with the post id const openEdit = async (post: PostMeta) => store.posts.selectedId = post.id; +const refresh = () => { + store.posts.refresh(); + store.content.refresh(); +} + const closeEdit = (update?: boolean) => { store.posts.selectedId = '' //reload channels if (update) { //must refresh content and posts when a post is updated - store.posts.refresh() - store.content.refresh() + refresh(); } //Reset page to top - window.scrollTo(0, 0) + window.scrollTo(0, 0); } const openNew = () => { @@ -95,7 +99,7 @@ const onSubmit = async ({post, content } : { post: PostMeta, content: string }) }) }) } - //Notify error state + refresh(); } const onDelete = async (post: PostMeta) => { -- cgit