refresh list after merge

This commit is contained in:
vabene1111
2025-01-02 11:11:13 +01:00
parent 05e507278e
commit a4a93c5f4a
2 changed files with 4 additions and 1 deletions

View File

@@ -47,6 +47,8 @@ import {useI18n} from "vue-i18n";
import VClosableCardTitle from "@/components/dialogs/VClosableCardTitle.vue";
import {ApiApi, Automation} from "@/openapi";
const emit = defineEmits(['change'])
const props = defineProps({
model: {type: String as PropType<EditorSupportedModels>, required: true},
source: {type: {} as PropType<EditorSupportedTypes>, required: true},
@@ -73,6 +75,7 @@ function mergeModel() {
genericModel.merge(props.source, target.value).then(r => {
useMessageStore().addPreparedMessage(PreparedMessage.UPDATE_SUCCESS)
emit('change')
if (automate.value && target.value != null && Object.hasOwn(props.source, 'name') && Object.hasOwn(target.value, 'name')) {
let automation = {