Skip to content

Commit

Permalink
Add Error Message Component
Browse files Browse the repository at this point in the history
  • Loading branch information
dstegelman committed Apr 8, 2024
1 parent 9e3cde5 commit a36c857
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,4 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml
.idea/
19 changes: 19 additions & 0 deletions CsuChhs.Blazor/Components/Common/ErrorMessageComponent.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<div class="alert alert-danger" role="alert">
<h5 class="alert-heading">Error</h5>
@if (!string.IsNullOrEmpty(Message))
{
<p>@Message</p>
}
else
{
<p>
An error has occurred. Please try again. If this continues
to occur please reach out to a member of the Application Development team.
</p>
}
</div>

@code {
[Parameter]
public string? Message { get; set; }
}

0 comments on commit a36c857

Please sign in to comment.