Skip to content
Snippets Groups Projects
Commit e5928731 authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

Enhance toast to grilled cheese toast!

parent 9ee2e9bd
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,13 @@ var foreignJobs;
var foreignJobsSubscribers = [];
function toast(message) {
function toast(message, color="") {
var toast;
var toastActionElement;
toast = M.toast({"html": `<span>${message}</span>
<button class="btn-flat toast-action red-text" data-action="close">
toast = M.toast({"classes": color,
"html": `<span>${message}</span>
<button class="btn-flat toast-action white-text" data-action="close">
<i class="material-icons">close</i>
</button>`});
toastActionElement = toast.el.querySelector(`.toast-action[data-action="close"]`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment