Skip to content

Commit

Permalink
hotfix: Show modal notification when in defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
samuveth committed Feb 1, 2023
1 parent e927a70 commit 37e6271
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/TheModalNotification.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { useModalNotification } from '@/composables';
import defaults from '@/locales/default.json';
const { items } = useModalNotification();
</script>
Expand All @@ -8,6 +9,7 @@ const { items } = useModalNotification();
<teleport to="#modal">
<template v-for="item in items" :key="item.id">
<ModalMessage
v-if="defaults.modalNotifications?.[item.description]"
:open="items.length > 0"
:title="$t(`modalNotifications.${item.description}.title`)"
:message="$t(`modalNotifications.${item.description}.message`)"
Expand Down

0 comments on commit 37e6271

Please sign in to comment.