Better emty state label for items list when using custom metadata sorting.

This commit is contained in:
Mateus Machado Luna 2019-07-31 15:18:31 -03:00
parent 4845f6eab7
commit e480adb8ad
2 changed files with 4 additions and 4 deletions

View File

@ -779,7 +779,7 @@
<i class="tainacan-icon tainacan-icon-36px tainacan-icon-items" />
</span>
</p>
<p v-if="status == undefined || status == ''">{{ hasFiltered ? $i18n.get('info_no_item_found_filter') : $i18n.get('info_no_item_created') }}</p>
<p v-if="status == undefined || status == ''">{{ hasFiltered ? (isSortingByCustomMetadata ? $i18n.get('info_no_item_found') : $i18n.get('info_no_item_found_filter')) : $i18n.get('info_no_item_created') }}</p>
<p
v-for="(statusOption, index) of $statusHelper.getStatuses()"
:key="index"
@ -788,7 +788,7 @@
</p>
<router-link
v-if="!hasFiltered && (status == undefined || status == '') && !$route.query.iframemode"
v-if="!isSortingByCustomMetadata && !hasFiltered && (status == undefined || status == '') && !$route.query.iframemode"
id="button-create-item"
tag="button"
class="button is-secondary"

View File

@ -755,7 +755,7 @@
<i class="tainacan-icon tainacan-icon-36px tainacan-icon-items" />
</span>
</p>
<p v-if="status == undefined || status == ''">{{ hasFiltered ? $i18n.get('info_no_item_found_filter') : $i18n.get('info_no_item_created') }}</p>
<p v-if="status == undefined || status == ''">{{ hasFiltered ? (isSortingByCustomMetadata ? $i18n.get('info_no_item_found') : $i18n.get('info_no_item_found_filter')) : $i18n.get('info_no_item_created') }}</p>
<p
v-for="(statusOption, index) of $statusHelper.getStatuses()"
:key="index"
@ -764,7 +764,7 @@
</p>
<router-link
v-if="!hasFiltered && (status == undefined || status == '')"
v-if="!isSortingByCustomMetadata && !hasFiltered && (status == undefined || status == '')"
id="button-create-item"
tag="button"
class="button is-secondary"