mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix compilation errors
This commit is contained in:
parent
b8b325f7d7
commit
cf41fa9574
@ -1,12 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<ckeditor
|
<comment-editor
|
||||||
name="content"
|
|
||||||
:placeholder="$t('add_comment.content')"
|
|
||||||
:editor="editor"
|
|
||||||
v-model="content"
|
v-model="content"
|
||||||
tag-name="textarea"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -15,8 +11,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, ref, watch } from "vue";
|
import { defineComponent, ref, watch } from "vue";
|
||||||
|
|
||||||
import CKEditor from "@ckeditor/ckeditor5-vue";
|
import CommentEditor from "ChillMainAssets/vuejs/_components/CommentEditor/CommentEditor.vue"
|
||||||
import ClassicEditor from "../../../../../../../ChillMainBundle/Resources/public/module/ckeditor5/editor_config";
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "AddCommentComponent",
|
name: "AddCommentComponent",
|
||||||
@ -27,7 +22,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
ckeditor: CKEditor.component,
|
CommentEditor,
|
||||||
},
|
},
|
||||||
emits: ["update:modelValue"],
|
emits: ["update:modelValue"],
|
||||||
|
|
||||||
@ -40,7 +35,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
content,
|
content,
|
||||||
editor: ClassicEditor,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -96,7 +96,7 @@ import {
|
|||||||
} from "ChillMainAssets/types";
|
} from "ChillMainAssets/types";
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
import AddPersons from "ChillPersonAssets/Resources/public/vuejs/_components/AddPersons.vue";
|
import AddPersons from "ChillPersonAssets/vuejs/_components/AddPersons.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "AddresseeSelectorComponent",
|
name: "AddresseeSelectorComponent",
|
||||||
@ -205,7 +205,7 @@ export default defineComponent({
|
|||||||
) as UserGroup[];
|
) as UserGroup[];
|
||||||
const users = addressees.value.filter(
|
const users = addressees.value.filter(
|
||||||
(addressee) => addressee.type == "user",
|
(addressee) => addressee.type == "user",
|
||||||
) as UserGroup[];
|
) as User[];
|
||||||
addressees.value = [...users, ...userGroupLevel, ...userGroupAdd];
|
addressees.value = [...users, ...userGroupLevel, ...userGroupAdd];
|
||||||
ctx.emit("update:modelValue", addressees.value);
|
ctx.emit("update:modelValue", addressees.value);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user