mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-21 20:44:41 +08:00
Merge pull request #4342 from okriuchykhin/ok_SCI_7071
Fix WOPI editing after creation issue [SCI-7071]
This commit is contained in:
commit
32c53e223b
2 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,7 @@
|
||||||
openWopiFileModal() {
|
openWopiFileModal() {
|
||||||
this.initWopiFileModal(this.step, (_e, data, status) => {
|
this.initWopiFileModal(this.step, (_e, data, status) => {
|
||||||
if (status === 'success') {
|
if (status === 'success') {
|
||||||
|
$(this.$refs.modal).modal('hide');
|
||||||
this.$emit('attachmentUploaded', data);
|
this.$emit('attachmentUploaded', data);
|
||||||
} else {
|
} else {
|
||||||
HelperModule.flashAlertMsg(this.i18n.t('errors.general'), 'danger');
|
HelperModule.flashAlertMsg(this.i18n.t('errors.general'), 'danger');
|
||||||
|
|
|
@ -14,6 +14,8 @@ export default {
|
||||||
(e, data, status) => {
|
(e, data, status) => {
|
||||||
if (status === 'success') {
|
if (status === 'success') {
|
||||||
$wopiModal.modal('hide');
|
$wopiModal.modal('hide');
|
||||||
|
window.open(data.edit_url, '_blank');
|
||||||
|
window.focus();
|
||||||
} else {
|
} else {
|
||||||
HelperModule.flashAlertMsg(this.i18n.t('errors.general'), 'danger');
|
HelperModule.flashAlertMsg(this.i18n.t('errors.general'), 'danger');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue