Skip to content

Commit

Permalink
fix: empty placeholders for penalty calculator and wiki
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Dec 26, 2024
1 parent 9f2805e commit 39242a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const columns = [
<DataNoDataBlock
v-else-if="lawBooks && lawBooks.length === 0"
icon="i-mdi-gavel"
:type="`${$t('common.citizen', 1)} ${$t('common.activity')}`"
:type="$t('common.law', 2)"
class="mt-5"
/>

Expand Down
8 changes: 7 additions & 1 deletion app/pages/wiki/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,18 @@ watch(pages, async () => {
<DataPendingBlock v-if="loading" :message="$t('common.loading', [$t('common.page')])" />
<DataErrorBlock v-else-if="error" :retry="refresh" />
<DataNoDataBlock
v-else-if="!pages || pages.length === 0"
v-else-if="!pages"
icon="i-mdi-file-search"
:title="$t('common.unable_to_load', [$t('common.wiki', 2)])"
:error="error"
:retry="refresh"
/>
<DataNoDataBlock
v-else-if="pages.length === 0"
icon="i-mdi-file-search"
:title="$t('common.not_found', [$t('common.wiki', 2)])"
:retry="refresh"
/>

<UPageGrid v-else>
<UPageCard
Expand Down

0 comments on commit 39242a2

Please sign in to comment.