toats notifications in the web
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#}
|
||||
{% import "ui/alert.html" as alert %}
|
||||
{% import "ui/dialog.html" as dialog %}
|
||||
{% import "ui/toast.html" as toast %}
|
||||
|
||||
{#
|
||||
A failure is a dialog, not an inline alert: the builder is taller than the
|
||||
@@ -17,7 +18,7 @@
|
||||
what is left on the page after the dialog is dismissed.
|
||||
#}
|
||||
{%- if let Some(message) = page.error %}{% call alert::error("Could not continue", message) %}{% endcall %}{% endif -%}
|
||||
{%- if let Some(message) = page.status %}{% call alert::success("Draft updated", message) %}{% endcall %}{% endif -%}
|
||||
{%- if let Some(message) = page.status %}{% call toast::success("Draft updated", message) %}{% endcall %}{% endif -%}
|
||||
{%- if let Some(message) = page.error %}{% call dialog::error("Could not continue", message) %}{% endcall %}{% endif -%}
|
||||
|
||||
<section class="builder-section">
|
||||
|
||||
Reference in New Issue
Block a user