mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Detach the File name changes from changing filename inside the OVE [SCI-9169] (#6116)
This commit is contained in:
parent
bed7f574f0
commit
c46c2ee9d6
1 changed files with 1 additions and 12 deletions
|
@ -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 } }
|
||||
)
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue