Also hides columns when no metadata is loaded from source. #299.

This commit is contained in:
Mateus Machado Luna 2019-09-19 12:11:34 -03:00
parent f779349100
commit 4f7bc12f1b
1 changed files with 39 additions and 38 deletions

View File

@ -42,14 +42,14 @@
<div
v-if="importerSourceInfo != undefined &&
importerSourceInfo != null">
<template v-if="importerSourceInfo.source_metadata.length > 0">
<p class="mapping-header-label is-inline">{{ $i18n.get('label_from_source_collection') }}</p>
<p class="mapping-header-label is-pulled-right">{{ $i18n.get('label_to_target_collection') }}</p>
<div
v-if="importerSourceInfo.source_metadata.length > 0"
class="source-metadatum"
v-for="(source_metadatum, index) of importerSourceInfo.source_metadata"
:key="index"><p>{{ source_metadatum }}</p>
:key="index">
<p>{{ source_metadatum }}</p>
<b-select
v-if="collectionMetadata != undefined &&
collectionMetadata.length > 0 &&
@ -78,11 +78,12 @@
</b-select>
<p v-if="collectionMetadata == undefined || collectionMetadata.length <= 0">{{ $i18n.get('info_select_collection_to_list_metadata') }}</p>
</div>
<div v-if="importerSourceInfo.source_metadata.length <= 0">
</template>
<template v-if="importerSourceInfo.source_metadata.length <= 0 && !isLoading">
<br>
<p>{{ $i18n.get('info_no_metadata_source_file') }}</p>
<p>{{ $i18n.get('info_special_fields_available') }}</p>
</div>
</template>
<b-modal
@close="onMetadatumEditionCanceled()"
:active.sync="isNewMetadatumModalActive">