aboutsummaryrefslogtreecommitdiff
path: root/front-end/src/views/Blog/components/Content.vue
diff options
context:
space:
mode:
Diffstat (limited to 'front-end/src/views/Blog/components/Content.vue')
-rw-r--r--front-end/src/views/Blog/components/Content.vue5
1 files changed, 2 insertions, 3 deletions
diff --git a/front-end/src/views/Blog/components/Content.vue b/front-end/src/views/Blog/components/Content.vue
index 888b595..5e81629 100644
--- a/front-end/src/views/Blog/components/Content.vue
+++ b/front-end/src/views/Blog/components/Content.vue
@@ -50,7 +50,6 @@ import EditorTable from './EditorTable.vue';
import ContentEditor from './Content/ContentEditor.vue';
import ContentTable from './Content/ContentTable.vue';
-const emit = defineEmits(['reload'])
const store = useStore()
const { uploadProgress } = storeToRefs(store)
@@ -64,13 +63,14 @@ const loadingProgress = computed(() => `${uploadProgress.value}%`);
const progressWidth = computed(() => ({ width: `${uploadProgress.value}%` }));
const showProgress = computed(() => uploadProgress.value > 0 && uploadProgress.value < 100);
+
const openEdit = async (item: ContentMeta) => store.content.selectedId = item.id
const closeEdit = (update?: boolean) => {
store.content.selectedId = ''
//reload channels
if (update) {
- emit('reload')
+ store.content.refresh()
}
//Reset page to top
window.scrollTo(0, 0)
@@ -173,5 +173,4 @@ const onDownload = async (item: ContentMeta) => {
})
}
-
</script> \ No newline at end of file