diff --git a/desk/src/components/CommentBox.vue b/desk/src/components/CommentBox.vue index 9837be3f4..ab4e4c556 100644 --- a/desk/src/components/CommentBox.vue +++ b/desk/src/components/CommentBox.vue @@ -58,28 +58,14 @@ import { useAuthStore } from "@/stores/auth"; const authStore = useAuthStore(); const props = defineProps({ - name: { - type: String, - required: true, - }, - creation: { - type: String, - required: true, - }, - content: { - type: String, - required: true, - }, - commenter: { - type: String, - required: true, - }, - commentedBy: { - type: String, + activity: { + type: Object, required: true, }, }); +const { name, creation, content, commenter, commentedBy } = props.activity; + const emit = defineEmits(["update"]); const showDialog = ref(false); @@ -87,7 +73,7 @@ const deleteComment = createResource({ url: "frappe.client.delete", makeParams: () => ({ doctype: "HD Ticket Comment", - name: props.name, + name: name, }), onSuccess() { emit("update"); diff --git a/desk/src/components/CommunicationArea.vue b/desk/src/components/CommunicationArea.vue index c2bb85dc5..5930a5469 100644 --- a/desk/src/components/CommunicationArea.vue +++ b/desk/src/components/CommunicationArea.vue @@ -1,6 +1,6 @@