mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
25 lines
547 B
JavaScript
25 lines
547 B
JavaScript
|
export default {
|
||
|
mounted() {
|
||
|
this.initOVE();
|
||
|
},
|
||
|
computed: {
|
||
|
OVEurl() {
|
||
|
if (this.step) {
|
||
|
return this.step.attributes.open_vector_editor_context.new_sequence_asset_url;
|
||
|
} else if (this.result) {
|
||
|
return this.result.attributes.open_vector_editor_context.new_sequence_asset_url;
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
openOVEditor() {
|
||
|
window.showIFrameModal(this.OVEurl);
|
||
|
},
|
||
|
initOVE() {
|
||
|
$(window.iFrameModal).on('sequenceSaved', () => {
|
||
|
this.loadAttachments();
|
||
|
});
|
||
|
},
|
||
|
}
|
||
|
};
|