Disable the publish and preview buttons on news management console when bounds are exceeded (#25939)
This commit is contained in:
@@ -56,11 +56,17 @@ public sealed partial class ArticleEditorPanel : Control
|
||||
{
|
||||
control.ModulateSelfOverride = Color.Red;
|
||||
control.ToolTip = Loc.GetString("news-writer-text-length-exceeded");
|
||||
|
||||
ButtonPublish.Disabled = true;
|
||||
ButtonPreview.Disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
control.ModulateSelfOverride = null;
|
||||
control.ToolTip = string.Empty;
|
||||
|
||||
ButtonPublish.Disabled = false;
|
||||
ButtonPreview.Disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user