From: Brandon Hu <103440971+Brandon-Huu@users.noreply.github.com> Date: Sat, 9 Mar 2024 08:26:01 +0000 (+0000) Subject: Disable the publish and preview buttons on news management console when bounds are... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=08e1b79a7f6d75441bf50ead268e4b852d270172;p=space-station-14.git Disable the publish and preview buttons on news management console when bounds are exceeded (#25939) --- diff --git a/Content.Client/MassMedia/Ui/ArticleEditorPanel.xaml.cs b/Content.Client/MassMedia/Ui/ArticleEditorPanel.xaml.cs index 2918faa83d..7f98e3e0c3 100644 --- a/Content.Client/MassMedia/Ui/ArticleEditorPanel.xaml.cs +++ b/Content.Client/MassMedia/Ui/ArticleEditorPanel.xaml.cs @@ -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; } }