]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Disable the publish and preview buttons on news management console when bounds are...
authorBrandon Hu <103440971+Brandon-Huu@users.noreply.github.com>
Sat, 9 Mar 2024 08:26:01 +0000 (08:26 +0000)
committerGitHub <noreply@github.com>
Sat, 9 Mar 2024 08:26:01 +0000 (09:26 +0100)
Content.Client/MassMedia/Ui/ArticleEditorPanel.xaml.cs

index 2918faa83defd41abcf4af921f36f3d7bfb3b26e..7f98e3e0c3db317c680d8b9dd4d16793e4b429f4 100644 (file)
@@ -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;
         }
     }