Merge pull request #3424 from thabaum/net8-UserProfile-View-Fix

UserProfile/View.razor: Sets Input Classes to col-sm-9, Disables Reply When Notification From is System or Blank (empty)
This commit is contained in:
Shaun Walker 2023-10-23 11:22:15 -04:00 committed by GitHub
commit ff9147487f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,13 +13,13 @@
<label Class="col-sm-3">@Localizer["Title"] </label>
@if (title == "From")
{
<div class="col-sm-3">
<div class="col-sm-9">
<input class="form-control" @bind="@username" readonly />
</div>
}
@if (title == "To")
{
<div class="col-sm-3">
<div class="col-sm-9">
<input class="form-control" @bind="@username" />
</div>
}
@ -28,13 +28,13 @@
<label Class="col-sm-3">@Localizer["Subject"] </label>
@if (title == "From")
{
<div class="col-sm-3">
<div class="col-sm-9">
<input class="form-control" @bind="@subject" readonly />
</div>
}
@if (title == "To")
{
<div class="col-sm-3">
<div class="col-sm-9">
<input class="form-control" @bind="@subject" />
</div>
}
@ -81,7 +81,7 @@
}
else
{
if (title == "From")
if (title == "From" && !string.IsNullOrWhiteSpace(username) && username != "System")
{
<button type="button" class="btn btn-primary" @onclick="Reply">@Localizer["Reply"]</button>
}