Disable submit admin note button on switch to note (#33456)

Co-authored-by: Winkarst <74284083+Winkarst-cpu@users.noreply.github.co>
This commit is contained in:
Winkarst
2024-11-23 09:41:28 +03:00
committed by GitHub
parent 7feafcbe95
commit 0a587c9ccc

View File

@@ -159,6 +159,7 @@ public sealed partial class NoteEdit : FancyWindow
SecretCheckBox.Pressed = false; SecretCheckBox.Pressed = false;
SeverityOption.Disabled = false; SeverityOption.Disabled = false;
PermanentCheckBox.Pressed = true; PermanentCheckBox.Pressed = true;
SubmitButton.Disabled = true;
UpdatePermanentCheckboxFields(); UpdatePermanentCheckboxFields();
break; break;
case (int) NoteType.Message: // Message: these are shown to the player when they log on case (int) NoteType.Message: // Message: these are shown to the player when they log on