Skip to content

Commit

Permalink
Merge pull request #11 from csu-chhs/error-message-component
Browse files Browse the repository at this point in the history
Add Error Message Component
  • Loading branch information
dstegelman authored Apr 9, 2024
2 parents 9e3cde5 + b36e99b commit 0b8e482
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
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; }
}
2 changes: 1 addition & 1 deletion CsuChhs.Blazor/CsuChhs.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>CHHS Application Development Team</Authors>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<PackageProjectUrl>https://github.com/csu-chhs/CsuChhs.Blazor</PackageProjectUrl>
<Company>College of Health and Human Sciences</Company>
<PackageId>CsuChhs.Blazor</PackageId>
Expand Down

0 comments on commit 0b8e482

Please sign in to comment.