fix regression issue caused by #3985 related to ActionLink

This commit is contained in:
sbwalker 2024-03-23 11:39:11 -04:00
parent 438cf271c0
commit 784955cdbd
3 changed files with 14 additions and 4 deletions

View File

@ -97,11 +97,14 @@
{
base.OnParametersSet();
_text = Action;
if (!string.IsNullOrEmpty(Text))
{
_text = Localize(nameof(Text), _text);
}
else
{
_text = Localize(nameof(Action), Action);
}
if (IconOnly && !string.IsNullOrEmpty(IconName))
{

View File

@ -13,6 +13,13 @@
@((MarkupString)content)
@if (PageState.EditMode && content.Length > 1000)
{
<div class="text-center mt-2">
<ActionLink Action="Edit" EditMode="true" ResourceKey="Edit" />
</div>
}
@code {
private string content = "";

View File

@ -118,10 +118,10 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Edit.Action" xml:space="preserve">
<value>Edit</value>
<value>Edit Content</value>
</data>
<data name="Edit.Text" xml:space="preserve">
<value>Edit</value>
<value>Edit Content</value>
</data>
<data name="Error.Content.Load" xml:space="preserve">
<value>An Error Occurred Loading Content</value>