Finishing up our response to user, and adding alerts

This commit is contained in:
Muyao CHEN
2024-07-01 14:28:00 +02:00
parent 3ad57c754f
commit d8d2abcde3
3 changed files with 18 additions and 0 deletions

View File

@ -116,6 +116,16 @@
})
}
{{with .Error}}
notify("{{.}}", "error")
{{end}}
{{with .Warning}}
notify("{{.}}", "warning")
{{end}}
{{with .Flash}}
notify("{{.}}", "flash")
{{end}}
// Prompt is out Javascript module for all alerts, notifications, and custom popup dialogs
function Prompt() {
let toast = function (c) {