diff --git a/components/actors/merge.vue b/components/actors/merge.vue index cb26b08..2dad31e 100644 --- a/components/actors/merge.vue +++ b/components/actors/merge.vue @@ -17,6 +17,7 @@ const emit = defineEmits(['close', 'merged']); const targetActor = ref(null); const actorInput = ref(null); +const comment = ref(null); const actorQuery = ref(''); const actorResults = ref([]); const submitted = ref(false); @@ -51,7 +52,9 @@ function getActorNames() { async function merge() { submitted.value = true; - await post(`/actors/${targetActor.value.id}/merge/${props.actors.map((actor) => actor.id).join(',')}`, null, { + await post(`/actors/${targetActor.value.id}/merge/${props.actors.map((actor) => actor.id).join(',')}`, { + comment: comment.value || null, + }, { successFeedback: `Merged ${getActorNames()} into ${targetActor.value.name}`, errorFeedback: `Failed to merge ${getActorNames()} into ${targetActor.value.name}`, appendErrorMessage: true, @@ -173,6 +176,13 @@ onMounted(() => { +