1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 10:51:21 +02:00

feat(admin-plugin): update swal2 animations #211

This commit is contained in:
Awilum
2020-02-03 22:50:09 +03:00
parent 54a851e032
commit 15584496d1

View File

@@ -1,5 +1,17 @@
<script>
const Toast = Swal.mixin({toast: true, position: 'bottom-end', showConfirmButton: false, timer: 3000, timerProgressBar: false});
const Toast = Swal.mixin({
toast: true,
position: 'bottom-end',
showConfirmButton: false,
timer: 3000,
timerProgressBar: false,
showClass: {
popup: 'animated fadeInRight faster'
},
hideClass: {
popup: 'animated fadeOutRight faster'
}
});
{% for message in flash()['success'] %}
Toast.fire({icon: '', title: '{{ message }}'});