Better info on send email for exporters. Ref. #160.

This commit is contained in:
mateuswetah 2018-12-17 18:51:01 -02:00
parent 7c2edbaf34
commit d9aec084b9
3 changed files with 11 additions and 4 deletions

View File

@ -70,7 +70,12 @@
</b-select> </b-select>
</b-field> </b-field>
<b-field :label="$i18n.get('label_send_email')"> <b-field
:addons="false"
:label="$i18n.get('label_send_email')">
<help-button
:title="$i18n.get('label_send_email')"
:message="'<span>' + $i18n.get('info_send_email') + `&nbsp;<a href='` + adminFullURL + $routerHelper.getProcessesPage() + `'>` + $i18n.get('activities') + ` ` + $i18n.get('label_page') + '</a></span>'"/>
<b-checkbox <b-checkbox
true-value="1" true-value="1"
false-value="0" false-value="0"
@ -115,6 +120,7 @@
return { return {
exporterType: '', exporterType: '',
collections: [], collections: [],
adminFullURL: tainacan_plugin.admin_url + 'admin.php?page=tainacan_admin#',
isFetchingCollections: false, isFetchingCollections: false,
selectedMapping: undefined, selectedMapping: undefined,
selectedCollection: undefined, selectedCollection: undefined,

View File

@ -10,7 +10,7 @@
<h5>{{ title }}</h5> <h5>{{ title }}</h5>
</div> </div>
<div class="help-tooltip-body"> <div class="help-tooltip-body">
<p>{{ (message != '' && message != undefined) ? message : $i18n.get('info_no_description_provided') }}</p> <p v-html="(message != '' && message != undefined) ? message : $i18n.get('info_no_description_provided')"/>
</div> </div>
</div> </div>
</span> </span>

View File

@ -341,7 +341,7 @@ return apply_filters( 'tainacan-admin-i18n', [
'label_filters_from' => __( 'Filters from', 'tainacan' ), 'label_filters_from' => __( 'Filters from', 'tainacan' ),
'label_available_exporters' => __( 'Available Exporters', 'tainacan' ), 'label_available_exporters' => __( 'Available Exporters', 'tainacan' ),
'label_source_collection' => __( 'Origin collection', 'tainacan'), 'label_source_collection' => __( 'Origin collection', 'tainacan'),
'label_send_email' => __( 'Send a email after exportation completed', 'tainacan' ), 'label_send_email' => __( 'Send me an e-mail when done.', 'tainacan' ),
'label_urls' => __( 'URLs', 'tainacan' ), 'label_urls' => __( 'URLs', 'tainacan' ),
'label_page' => __( 'Page', 'tainacan' ), 'label_page' => __( 'Page', 'tainacan' ),
'label_activity_description' => __( 'Activity description', 'tainacan' ), 'label_activity_description' => __( 'Activity description', 'tainacan' ),
@ -523,10 +523,11 @@ return apply_filters( 'tainacan-admin-i18n', [
'info_process_status_cancelled' => __('Cancelled', 'tainacan'), 'info_process_status_cancelled' => __('Cancelled', 'tainacan'),
'info_process_status_paused' => __('Paused', 'tainacan'), 'info_process_status_paused' => __('Paused', 'tainacan'),
'info_process_status_running' => __('Running', 'tainacan'), 'info_process_status_running' => __('Running', 'tainacan'),
'info_warning_process_cancelled' => __( 'Are you sure? This process will be cancelled', 'tainacan' ), 'info_warning_process_cancelled' => __( 'Are you sure? This process will be cancelled', 'tainacan' ),
'info_empty' => __( 'empty', 'tainacan' ), 'info_empty' => __( 'empty', 'tainacan' ),
'info_url_copied' => __( 'URL link copied', 'tainacan' ), 'info_url_copied' => __( 'URL link copied', 'tainacan' ),
'info_other_item_listing_options' => __('Other items listing options: ', 'tainacan'), 'info_other_item_listing_options' => __('Other items listing options: ', 'tainacan'),
'info_send_email' => __('The exporter may take a while depending on the size of your collection. Check this option to receive an e-mail when the process is done. You can also check the process status visiting the', 'tainacan'),
// Tainacan Metadatum Types // Tainacan Metadatum Types
'tainacan-text' => __( 'Text', 'tainacan' ), 'tainacan-text' => __( 'Text', 'tainacan' ),