Skip to content

Commit

Permalink
Merge pull request #4070 from QuantiModo/feature/errorAlert
Browse files Browse the repository at this point in the history
errorAlert
  • Loading branch information
mikepsinn authored Sep 29, 2020
2 parents 580dc84 + f85fd85 commit bdf14d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/qmHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8691,6 +8691,10 @@ var qm = {
},
toast: {
errorAlert: function(errorMessage, callback){
if(typeof Swal === "undefined"){
console.error("Swal not defined to show errorAlert for: "+errorMessage)
return;
}
var Toast = Swal.mixin({
toast: true,
icon: "error",
Expand Down

0 comments on commit bdf14d7

Please sign in to comment.