diff options
author | vnugent <public@vaughnnugent.com> | 2023-12-31 21:22:00 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-12-31 21:22:00 -0500 |
commit | 272dad8ba722a6a1a072790cf13f3efb9f40f7af (patch) | |
tree | a5dc749b38eb73e9fc9ffcb39ef1b0ac27e8c155 /front-end/src/views | |
parent | cedc795e7eea326e73a9625f5ca7bfbead9b34de (diff) |
hopefully last commit before release & fix some minor annoyances
Diffstat (limited to 'front-end/src/views')
-rw-r--r-- | front-end/src/views/Blog/ckeditor/Editor.vue | 6 | ||||
-rw-r--r-- | front-end/src/views/Blog/components/Posts.vue | 5 | ||||
-rw-r--r-- | front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/front-end/src/views/Blog/ckeditor/Editor.vue b/front-end/src/views/Blog/ckeditor/Editor.vue index e1ee2ce..b1d6c0b 100644 --- a/front-end/src/views/Blog/ckeditor/Editor.vue +++ b/front-end/src/views/Blog/ckeditor/Editor.vue @@ -26,7 +26,7 @@ <div class=""> Search for content by its id or file name. </div> - <ContentSearch :blog="$props.blog"/> + <ContentSearch/> </div> </PopoverPanel> </Popover> @@ -70,7 +70,7 @@ <script setup lang="ts"> import { debounce, defer } from 'lodash-es'; -import { computed, ref, toRefs } from 'vue'; +import { computed, defineAsyncComponent, ref, toRefs } from 'vue'; import { useSessionStorage } from '@vueuse/core'; import { tryOnMounted } from '@vueuse/shared'; import { apiCall } from '@vnuge/vnlib.browser'; @@ -78,8 +78,8 @@ import { Popover, PopoverButton, PopoverPanel, Switch } from '@headlessui/vue' import { Converter } from 'showdown' import { useCkConfig } from './build.ts' import { useUploadAdapter } from './uploadAdapter'; -import ContentSearch from '../components/ContentSearch.vue'; import { useStore } from '../../../store'; +const ContentSearch = defineAsyncComponent(() => import('../components/ContentSearch.vue')); const emit = defineEmits(['change', 'load', 'mode-change']) diff --git a/front-end/src/views/Blog/components/Posts.vue b/front-end/src/views/Blog/components/Posts.vue index 5c345f4..647e093 100644 --- a/front-end/src/views/Blog/components/Posts.vue +++ b/front-end/src/views/Blog/components/Posts.vue @@ -11,7 +11,7 @@ <template #editor> <PostEditor @submit="onSubmit" - @close="closeEdit" + @close="closeEdit(true)" @delete="onDelete" /> </template> @@ -97,9 +97,10 @@ const onSubmit = async ({post, content } : { post: PostMeta, content: string }) title: 'Saved', text: `Post '${post.title}' updated`, }) + + refresh(); }) } - refresh(); } const onDelete = async (post: PostMeta) => { diff --git a/front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue b/front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue index e8b9ddd..e770761 100644 --- a/front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue +++ b/front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue @@ -71,7 +71,7 @@ </template> <script setup lang="ts"> -import { ref, reactive, computed } from 'vue'; +import { ref, reactive, computed, defineAsyncComponent } from 'vue'; import { PodcastEntity, getPodcastForm } from './podcast-form' import { Dialog, @@ -83,10 +83,10 @@ import { Popover, Switch } from '@headlessui/vue' -import ContentSearch from '../ContentSearch.vue' import { apiCall, debugLog } from '@vnuge/vnlib.browser'; import { ContentMeta } from '@vnuge/cmnext-admin'; import { useStore } from '../../../../store'; +const ContentSearch = defineAsyncComponent(() => import('../ContentSearch.vue')); const emit = defineEmits(['submit']) const store = useStore() |