diff --git a/Start/Client/Components/Shared/Alert.razor b/Start/Client/Components/Shared/Alert.razor
index bb5f905..7d61c00 100644
--- a/Start/Client/Components/Shared/Alert.razor
+++ b/Start/Client/Components/Shared/Alert.razor
@@ -1,4 +1,5 @@
-
+
+ @this.AlertTypeToTitle(this.Type)
@ChildContent
@@ -20,6 +21,23 @@
}
}
+ private RenderFragment? AlertTypeToTitle(AlertType type)
+ {
+ switch (type)
+ {
+ case AlertType.Error:
+ return @
Error;
+ case AlertType.Warning:
+ return @
Warning;
+ case AlertType.Success:
+ return @
Success;
+ case AlertType.Info:
+ return @
Info;
+ default:
+ return null;
+ }
+ }
+
public enum AlertType
{
Error,