begun adding attachment support
This commit is contained in:
@@ -43,6 +43,11 @@
|
|||||||
<SMEditor v-model:model-value="form.content.value" />
|
<SMEditor v-model:model-value="form.content.value" />
|
||||||
</SMColumn>
|
</SMColumn>
|
||||||
</SMRow>
|
</SMRow>
|
||||||
|
<SMRow>
|
||||||
|
<SMColumn>
|
||||||
|
<SMInputAttachments :model-value="attachments" />
|
||||||
|
</SMColumn>
|
||||||
|
</SMRow>
|
||||||
<SMRow>
|
<SMRow>
|
||||||
<SMFormFooter>
|
<SMFormFooter>
|
||||||
<template #right>
|
<template #right>
|
||||||
@@ -70,12 +75,14 @@ import SMEditor from "../../components/SMEditor.vue";
|
|||||||
import SMPage from "../../components/SMPage.vue";
|
import SMPage from "../../components/SMPage.vue";
|
||||||
import SMForm from "../../components/SMForm.vue";
|
import SMForm from "../../components/SMForm.vue";
|
||||||
import SMFormFooter from "../../components/SMFormFooter.vue";
|
import SMFormFooter from "../../components/SMFormFooter.vue";
|
||||||
|
import SMInputAttachments from "../../components/SMInputAttachments.vue";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const page_title = route.params.id ? "Edit Post" : "Create New Post";
|
const page_title = route.params.id ? "Edit Post" : "Create New Post";
|
||||||
const pageError = ref(200);
|
const pageError = ref(200);
|
||||||
const authors = ref({});
|
const authors = ref({});
|
||||||
|
const attachments = ref(["4687166e-7f9e-4394-abdf-2d254c8bb087"]);
|
||||||
|
|
||||||
const form = reactive(
|
const form = reactive(
|
||||||
FormObject({
|
FormObject({
|
||||||
|
|||||||
Reference in New Issue
Block a user