mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 14:54:38 +08:00
Merge pull request #5037 from G-Chubinidze/gc_SCI_7673
Add office file to task step - reload file option shows plain html page [SCI-7673]
This commit is contained in:
commit
a1cebecdcd
1 changed files with 11 additions and 3 deletions
|
@ -44,8 +44,8 @@
|
||||||
<div v-else class="empty-office-file">
|
<div v-else class="empty-office-file">
|
||||||
<h2>{{ i18n.t('assets.empty_office_file.description') }}</h2>
|
<h2>{{ i18n.t('assets.empty_office_file.description') }}</h2>
|
||||||
<a :href="attachment.attributes.urls.load_asset"
|
<a :href="attachment.attributes.urls.load_asset"
|
||||||
remote="true"
|
|
||||||
class="btn btn-primary reload-asset"
|
class="btn btn-primary reload-asset"
|
||||||
|
@click.prevent="reloadAsset"
|
||||||
:params="{asset: {view_mode: attachment.attributes.view_mode}}">
|
:params="{asset: {view_mode: attachment.attributes.view_mode}}">
|
||||||
{{ i18n.t('assets.empty_office_file.reload') }}
|
{{ i18n.t('assets.empty_office_file.reload') }}
|
||||||
</a>
|
</a>
|
||||||
|
@ -90,5 +90,13 @@
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
reloadAsset() {
|
||||||
|
$.ajax({
|
||||||
|
method: 'GET',
|
||||||
|
url: this.attachment.attributes.urls.load_asset
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue