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:
commit
ff9147487f
@ -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>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user