You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
563 B

  1. APP.TOAST = {
  2. confirm : function(msg) {
  3. APP.toast.push({
  4. theme : 'default',
  5. icon : '<i class="far fa-bell"></i>',
  6. msg : msg
  7. });
  8. },
  9. error : function(msg) {
  10. APP.toast.push({
  11. theme : 'danger',
  12. icon : '<i class="far fa-exclamation-circle"></i>',
  13. msg : msg
  14. });
  15. },
  16. success: function(msg) {
  17. APP.toast.push({
  18. theme : 'success',
  19. icon : '<i class="far fa-check-circle"></i>',
  20. msg : msg
  21. })
  22. }
  23. };