diff --git a/src/components/scripts/ScriptFormModal.vue b/src/components/scripts/ScriptFormModal.vue index 628709c8..66f6653f 100644 --- a/src/components/scripts/ScriptFormModal.vue +++ b/src/components/scripts/ScriptFormModal.vue @@ -22,7 +22,7 @@ @click="generateScriptOpenAI" /> - + Close @@ -192,7 +192,7 @@ - + script.script_body, () => { @@ -373,6 +374,14 @@ function loadEditor() { }, ); }); + else { + watch( + () => script.script_body, + () => { + edited.value = true; + }, + ); + } // watch for changes in language watch(lang, () => {