CatStation/Content.Server/FeedbackSystem/OpenFeedbackPopupCommand.cs

24 lines
613 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);
}
}