Avoid Label.Text to be empty
This commit is contained in:
parent
5ce7284a6b
commit
299e28abc4
|
@ -43,16 +43,12 @@ else
|
|||
|
||||
_openLabel += ">";
|
||||
|
||||
if (IsLocalizable)
|
||||
var text = Localize("Text", String.Empty);
|
||||
if (text != String.Empty)
|
||||
{
|
||||
var key = $"{ResourceKey}.Text";
|
||||
var value = Localize(key);
|
||||
if (!value.Equals(key))
|
||||
{
|
||||
ChildContent =@<text>@value</text>;
|
||||
ChildContent =@<text>@text</text>;
|
||||
}
|
||||
|
||||
HelpText = Localize(nameof(HelpText), HelpText);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user