mirror of
https://github.com/ae-utbm/sith.git
synced 2025-10-09 16:24:39 +00:00
Remove QuikNotifMixin
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div id="notifications"
|
||||
<div id="quick-notifications"
|
||||
x-data="{
|
||||
messages: [
|
||||
{% if messages %}
|
||||
@@ -11,8 +11,8 @@
|
||||
{% endif %}
|
||||
]
|
||||
}"
|
||||
@notification-add="(e) => messages.push(e?.detail)"
|
||||
@notification-delete="messages = []">
|
||||
@quick-notification-add="(e) => messages.push(e?.detail)"
|
||||
@quick-notification-delete="messages = []">
|
||||
<template x-for="message in messages">
|
||||
<div x-data="{show: true}" class="alert" :class="`alert-${message.tag}`" x-show="show" x-transition>
|
||||
<span class="alert-main" x-text="message.text"></span>
|
||||
|
Reference in New Issue
Block a user