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 } - } - }); - }, - }, }