Add admin Erase verb, add checkbox to erase from the ban panel (#20985)
This commit is contained in:
@@ -37,6 +37,7 @@ public sealed class CrewManifestSystem : EntitySystem
|
||||
{
|
||||
SubscribeLocalEvent<AfterGeneralRecordCreatedEvent>(AfterGeneralRecordCreated);
|
||||
SubscribeLocalEvent<RecordModifiedEvent>(OnRecordModified);
|
||||
SubscribeLocalEvent<RecordRemovedEvent>(OnRecordRemoved);
|
||||
SubscribeLocalEvent<CrewManifestViewerComponent, BoundUIClosedEvent>(OnBoundUiClose);
|
||||
SubscribeLocalEvent<CrewManifestViewerComponent, CrewManifestOpenUiMessage>(OpenEuiFromBui);
|
||||
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnRoundRestart);
|
||||
@@ -83,6 +84,12 @@ public sealed class CrewManifestSystem : EntitySystem
|
||||
UpdateEuis(ev.Key.OriginStation);
|
||||
}
|
||||
|
||||
private void OnRecordRemoved(RecordRemovedEvent ev)
|
||||
{
|
||||
BuildCrewManifest(ev.Key.OriginStation);
|
||||
UpdateEuis(ev.Key.OriginStation);
|
||||
}
|
||||
|
||||
private void OnBoundUiClose(EntityUid uid, CrewManifestViewerComponent component, BoundUIClosedEvent ev)
|
||||
{
|
||||
var owningStation = _stationSystem.GetOwningStation(uid);
|
||||
|
||||
Reference in New Issue
Block a user