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