1
0
forked from noxious/client

Notification modal fix

This commit is contained in:
Dennis Postma 2024-06-09 23:06:54 +02:00
parent 9ff5fa3a84
commit f6ed14772b

View File

@ -1,7 +1,10 @@
<template>
<div class="notifications">
<Modal v-for="notification in notifications.getNotifications" :key="notification.id" :isModalOpen="true" @modal:close="closeNotification(notification.id)">
<template #modal-body>
<template #modalHeader v-if="notification.title">
<h3 class="modal-title">{{ notification.title }}</h3>
</template>
<template #modalBody v-if="notification.message">
<p>{{ notification.message }}</p>
</template>
</Modal>