Revert "Add office file to task step - reload file option shows plain html page [SCI-7673]"

This commit is contained in:
G-Chubinidze 2023-02-22 13:29:39 +04:00 committed by GitHub
parent e020b4a416
commit dac150f75f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,8 +44,9 @@
<div v-else class="empty-office-file">
<h2>{{ i18n.t('assets.empty_office_file.description') }}</h2>
<a :href="attachment.attributes.urls.load_asset"
remote="true"
class="btn btn-primary reload-asset"
@click.prevent="reloadAsset">
:params="{asset: {view_mode: attachment.attributes.view_mode}}">
{{ i18n.t('assets.empty_office_file.reload') }}
</a>
</div>
@ -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 }
}
});
},
},
}
</script>