fix: improve handling of empty custom attributes list in settings (#171)
This commit is contained in:
parent
331338b302
commit
ba9a0160ac
@ -150,8 +150,6 @@ const derivedAttributes = computed(() =>
|
|||||||
<SettingsLayout
|
<SettingsLayout
|
||||||
:is-loading="uiFlags.isFetching"
|
:is-loading="uiFlags.isFetching"
|
||||||
:loading-message="$t('ATTRIBUTES_MGMT.LOADING')"
|
:loading-message="$t('ATTRIBUTES_MGMT.LOADING')"
|
||||||
:no-records-found="!attributes.length"
|
|
||||||
:no-records-message="$t('ATTRIBUTES_MGMT.LIST.EMPTY_RESULT.404')"
|
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<BaseSettingsHeader
|
<BaseSettingsHeader
|
||||||
@ -177,7 +175,7 @@ const derivedAttributes = computed(() =>
|
|||||||
class="max-w-xl"
|
class="max-w-xl"
|
||||||
@tab-changed="onClickTabChange"
|
@tab-changed="onClickTabChange"
|
||||||
/>
|
/>
|
||||||
<div class="grid gap-3">
|
<div v-if="derivedAttributes.length" class="grid gap-3">
|
||||||
<AttributeListItem
|
<AttributeListItem
|
||||||
v-for="attribute in derivedAttributes"
|
v-for="attribute in derivedAttributes"
|
||||||
:key="attribute.id"
|
:key="attribute.id"
|
||||||
@ -187,6 +185,12 @@ const derivedAttributes = computed(() =>
|
|||||||
@delete="handleDeleteAttribute"
|
@delete="handleDeleteAttribute"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<p
|
||||||
|
v-else
|
||||||
|
class="flex-1 py-20 text-n-slate-12 flex items-center justify-center text-base"
|
||||||
|
>
|
||||||
|
{{ $t('ATTRIBUTES_MGMT.LIST.EMPTY_RESULT.404') }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<AddAttribute
|
<AddAttribute
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user