Detach the File name changes from changing filename inside the OVE [SCI-9169] (#6116)

This commit is contained in:
wandji 2023-09-01 12:54:41 +01:00 committed by GitHub
parent bed7f574f0
commit c46c2ee9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,15 +49,6 @@
closeAfterSave: false
}
},
watch: {
sequenceName() {
if (this.editor && this.editor.getState()) {
this.editor.updateEditor({
sequenceData: { ...this.editor.getState().sequenceData, name: this.sequenceName }
});
}
}
},
mounted() {
let editorConfig = {
onSave: this.saveFile,
@ -112,9 +103,7 @@
loadFile() {
fetch(this.fileUrl).then((response) => response.json()).then(
(json) => this.editor.updateEditor(
{
sequenceData: json
}
{ sequenceData: { ...json, name: this.sequenceName } }
)
);
},