aboutsummaryrefslogtreecommitdiff
path: root/app/components/forum_list
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-06-20 14:58:26 +0200
committerBen Beltran <ben@nsovocal.com>2020-06-20 14:58:26 +0200
commit8050f772caeedafffab6e3ec2f309205a019f3d0 (patch)
tree81b18185e1ffc9bb483e18b82f3a088dde7f358b /app/components/forum_list
parent2dc5448262ce444ead594376c47a62c3e88e0f8e (diff)
Add internationalized error block
Diffstat (limited to 'app/components/forum_list')
-rw-r--r--app/components/forum_list/forum_list.svelte5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/components/forum_list/forum_list.svelte b/app/components/forum_list/forum_list.svelte
index f77c79a..c218bac 100644
--- a/app/components/forum_list/forum_list.svelte
+++ b/app/components/forum_list/forum_list.svelte
@@ -1,8 +1,13 @@
<script>
+ import { _ } from 'svelte-i18n';
import { forums } from '../../stores/forums.js';
+ import ErrorBlock from '../error_block/error_block.svelte';
</script>
<nav title="List of Forums">
+ {#if !$forums.length}
+ <ErrorBlock message={$_('forum_list.error.unavailable')} />
+ {/if}
<ul>
{#each $forums as forum}
<li>