Save unpublished news articles (#31491)
* Add draft saving to news consoles * fix after bui changes * comments + rename vars * no
This commit is contained in:
@@ -22,4 +22,16 @@ public sealed partial class NewsWriterComponent : Component
|
||||
|
||||
[DataField]
|
||||
public SoundSpecifier ConfirmSound = new SoundPathSpecifier("/Audio/Machines/scan_finish.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// This stores the working title of the current article
|
||||
/// </summary>
|
||||
[DataField, ViewVariables]
|
||||
public string DraftTitle = "";
|
||||
|
||||
/// <summary>
|
||||
/// This stores the working content of the current article
|
||||
/// </summary>
|
||||
[DataField, ViewVariables]
|
||||
public string DraftContent = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user