Disable Reply Button When From is System or Emtpy

This commit is contained in:
Cody 2023-10-21 13:11:02 -07:00 committed by GitHub
parent 351829888f
commit 5b881f7c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
}