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:
@@ -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 }}'});
|
||||
|
Reference in New Issue
Block a user