aboutsummaryrefslogtreecommitdiff
path: root/front-end/src
diff options
context:
space:
mode:
Diffstat (limited to 'front-end/src')
-rw-r--r--front-end/src/views/Blog/components/Channels/ChannelEdit.vue4
-rw-r--r--front-end/src/views/Blog/components/Posts.vue12
2 files changed, 10 insertions, 6 deletions
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 @@
<div class="mx-auto">
<h4 v-if="editMode" class="text-center">Edit Channel</h4>
<h4 v-else class="text-center">Create Channel</h4>
- <p>
+ <p class="text-sm">
Your root directory and index file name must be unique within your S3 bucket.
</p>
</div>
@@ -31,7 +31,7 @@
<div class="max-w-xl mx-auto mt-6">
<h4 v-if="editMode" class="text-center">Edit Feed</h4>
<h4 v-else class="text-center">Create Feed</h4>
- <p>
+ <p class="text-sm">
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.
</p>
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) => {