Merge pull request #4342 from okriuchykhin/ok_SCI_7071

Fix WOPI editing after creation issue [SCI-7071]
This commit is contained in:
Alex Kriuchykhin 2022-08-11 15:52:17 +02:00 committed by GitHub
commit 32c53e223b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -139,6 +139,7 @@
openWopiFileModal() {
this.initWopiFileModal(this.step, (_e, data, status) => {
if (status === 'success') {
$(this.$refs.modal).modal('hide');
this.$emit('attachmentUploaded', data);
} else {
HelperModule.flashAlertMsg(this.i18n.t('errors.general'), 'danger');

View file

@ -14,6 +14,8 @@ export default {
(e, data, status) => {
if (status === 'success') {
$wopiModal.modal('hide');
window.open(data.edit_url, '_blank');
window.focus();
} else {
HelperModule.flashAlertMsg(this.i18n.t('errors.general'), 'danger');
}