From 784955cdbd41a2eb43815fba232e2d70c2bb8768 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Sat, 23 Mar 2024 11:39:11 -0400 Subject: [PATCH] fix regression issue caused by #3985 related to ActionLink --- Oqtane.Client/Modules/Controls/ActionLink.razor | 5 ++++- Oqtane.Client/Modules/HtmlText/Index.razor | 7 +++++++ Oqtane.Client/Resources/Modules/HtmlText/Index.resx | 6 +++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Oqtane.Client/Modules/Controls/ActionLink.razor b/Oqtane.Client/Modules/Controls/ActionLink.razor index 9af63298..45b1e784 100644 --- a/Oqtane.Client/Modules/Controls/ActionLink.razor +++ b/Oqtane.Client/Modules/Controls/ActionLink.razor @@ -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)) { diff --git a/Oqtane.Client/Modules/HtmlText/Index.razor b/Oqtane.Client/Modules/HtmlText/Index.razor index 642c8415..6247bb16 100644 --- a/Oqtane.Client/Modules/HtmlText/Index.razor +++ b/Oqtane.Client/Modules/HtmlText/Index.razor @@ -13,6 +13,13 @@ @((MarkupString)content) +@if (PageState.EditMode && content.Length > 1000) +{ +
+ +
+} + @code { private string content = ""; diff --git a/Oqtane.Client/Resources/Modules/HtmlText/Index.resx b/Oqtane.Client/Resources/Modules/HtmlText/Index.resx index 8ea8db4a..d8a4d059 100644 --- a/Oqtane.Client/Resources/Modules/HtmlText/Index.resx +++ b/Oqtane.Client/Resources/Modules/HtmlText/Index.resx @@ -118,10 +118,10 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Edit - + Edit Content + - Edit + Edit Content An Error Occurred Loading Content