mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 14:54:38 +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
|
closeAfterSave: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
sequenceName() {
|
|
||||||
if (this.editor && this.editor.getState()) {
|
|
||||||
this.editor.updateEditor({
|
|
||||||
sequenceData: { ...this.editor.getState().sequenceData, name: this.sequenceName }
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
let editorConfig = {
|
let editorConfig = {
|
||||||
onSave: this.saveFile,
|
onSave: this.saveFile,
|
||||||
|
@ -112,9 +103,7 @@
|
||||||
loadFile() {
|
loadFile() {
|
||||||
fetch(this.fileUrl).then((response) => response.json()).then(
|
fetch(this.fileUrl).then((response) => response.json()).then(
|
||||||
(json) => this.editor.updateEditor(
|
(json) => this.editor.updateEditor(
|
||||||
{
|
{ sequenceData: { ...json, name: this.sequenceName } }
|
||||||
sequenceData: json
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue