mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
24 lines
616 B
C#
24 lines
616 B
C#
using Content.Shared.Administration;
|
|
using Content.Shared.FeedbackSystem;
|
|
using Robust.Shared.Toolshed;
|
|
|
|
namespace Content.Server.FeedbackSystem;
|
|
|
|
/// <summary>
|
|
/// Opens the feedback popup window for the executing session
|
|
/// </summary>
|
|
[AnyCommand]
|
|
[ToolshedCommand]
|
|
public sealed partial class OpenFeedbackPopupCommand : ToolshedCommand
|
|
{
|
|
[Dependency] private ISharedFeedbackManager _feedback = null!;
|
|
|
|
[CommandImplementation]
|
|
public void Execute(IInvocationContext context)
|
|
{
|
|
if (context.Session == null)
|
|
return;
|
|
|
|
_feedback.OpenForSession(context.Session);
|
|
}
|
|
}
|