Skip to content

Commit

Permalink
Cherry-picked commit 08e1b79 from space-wizards/space-station-14/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-Huu authored and SimpleStation14 committed Apr 21, 2024
1 parent 3bf08c7 commit 5d2c6fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content.Client/MassMedia/Ui/ArticleEditorPanel.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,17 @@ private void OnTextChanged(long length, Control control, long maxLength)
{
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;
}
}

Expand Down

0 comments on commit 5d2c6fc

Please sign in to comment.