From dac150f75f82e0f01dfaad53c8e42d87c5d9933f Mon Sep 17 00:00:00 2001 From: G-Chubinidze <112488503+G-Chubinidze@users.noreply.github.com> Date: Wed, 22 Feb 2023 13:29:39 +0400 Subject: [PATCH] Revert "Add office file to task step - reload file option shows plain html page [SCI-7673]" --- .../vue/protocol/step_attachments/inline.vue | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/app/javascript/vue/protocol/step_attachments/inline.vue b/app/javascript/vue/protocol/step_attachments/inline.vue index 1459268d7..b122be4d2 100644 --- a/app/javascript/vue/protocol/step_attachments/inline.vue +++ b/app/javascript/vue/protocol/step_attachments/inline.vue @@ -12,8 +12,8 @@ :data-gallery-view-id="stepId" :data-preview-url="attachment.attributes.urls.preview" > - {{ attachment.attributes.file_name }} @@ -44,8 +44,9 @@

{{ i18n.t('assets.empty_office_file.description') }}

+ :params="{asset: {view_mode: attachment.attributes.view_mode}}"> {{ i18n.t('assets.empty_office_file.reload') }}
@@ -89,16 +90,5 @@ required: true } }, - methods: { - reloadAsset() { - $.ajax({ - method: 'GET', - url: this.attachment.attributes.urls.load_asset, - data: { - asset: { view_mode: this.attachment.attributes.view_mode } - } - }); - }, - }, }