Add download function to imported result.

This commit is contained in:
Stephan Porada
2020-07-08 16:03:44 +02:00
parent ea7bb82661
commit 84f1d7dc39
3 changed files with 28 additions and 2 deletions

View File

@ -114,6 +114,7 @@ RessourceList.dataMapper = {
corpus_type : result.corpus_type,
"details-link": `${result.id}/details`,
"inspect-link": `${result.id}/inspect`,
"download-link": `${result.id}/file/${result.file_id}/download`,
"delete-modal": `delete-result-${result.id}-modal`
}),
// Mapping for user entities shown in admin table
@ -285,6 +286,12 @@ RessourceList.options = {
data-tooltip="View Results">
<i class="material-icons">search</i>
</a>
<a class="btn-floating tooltipped download-link
waves-effect waves-light"
data-position="top"
data-tooltip="Download">
<i class="material-icons">file_download</i>
</a>
<a class="btn-floating tooltipped red delete-modal
waves-effect waves-light modal-trigger"
data-position="top"
@ -303,6 +310,7 @@ RessourceList.options = {
"corpus_type",
{name: "details-link", attr: "href"},
{name: "inspect-link", attr: "href"},
{name: "download-link", attr: "href"},
{name: "delete-modal", attr: "data-target"}]
},
// User entity blueprint setting html strucuture per entity per row