Adds output column to processes list.

This commit is contained in:
Mateus Machado Luna 2018-12-12 16:02:43 -02:00
parent 36559e8bf0
commit b659fe2d89
2 changed files with 20 additions and 0 deletions

View File

@ -53,6 +53,10 @@
<th>
<div class="th-wrap">{{ $i18n.get('label_progress') }}</div>
</th>
<!-- Output -->
<th>
<div class="th-wrap">{{ $i18n.get('label_output') }}</div>
</th>
<!-- Queued on -->
<th>
<div class="th-wrap">{{ $i18n.get('label_queued_on') }}</div>
@ -112,6 +116,20 @@
<span>{{ bgProcess.progress_value &lt;&equals; 0 ? `(0%)` : ' ('+ bgProcess.progress_value +'%)' }}</span>
</p>
</td>
<!-- Output -->
<td
class="column-default-width"
:label="$i18n.get('label_output')"
:aria-label="$i18n.get('label_output') + ': ' + (bgProcess.output ? bgProcess.output : $i18n.get('label_no_output_info'))">
<p
v-tooltip="{
html: true,
content: bgProcess.output ? bgProcess.output : $i18n.get('label_no_output_info'),
autoHide: false,
placement: 'auto-start'
}"
v-html="bgProcess.output ? bgProcess.output : $i18n.get('label_no_output_info')"/>
</td>
<!-- Queued on -->
<td
class="column-small-width"

View File

@ -349,6 +349,8 @@ return apply_filters( 'tainacan-admin-i18n', [
'label_items_list_on_website' => __( 'Items list on website', 'tainacan' ),
'label_copy_link_url' => __( 'Copy link URL', 'tainacan' ),
'label_open_externally' => __( 'Open externally', 'tainacan' ),
'label_no_output_info' => __( 'No output info', 'tainacan' ),
'label_output' => __( 'Output', 'tainacan' ),
// Instructions. More complex sentences to guide user and placeholders
'instruction_delete_selected_collections' => __( 'Delete selected collections', 'tainacan' ),