diff --git a/Content.Client/Store/Ui/StoreBoundUserInterface.cs b/Content.Client/Store/Ui/StoreBoundUserInterface.cs index 6774ef35a0..b549918d7c 100644 --- a/Content.Client/Store/Ui/StoreBoundUserInterface.cs +++ b/Content.Client/Store/Ui/StoreBoundUserInterface.cs @@ -48,6 +48,11 @@ public sealed class StoreBoundUserInterface : BoundUserInterface { SendMessage(new StoreRequestUpdateInterfaceMessage()); }; + + _menu.OnRefundAttempt += (_) => + { + SendMessage(new StoreRequestRefundMessage()); + }; } protected override void UpdateState(BoundUserInterfaceState state) { @@ -64,6 +69,7 @@ public sealed class StoreBoundUserInterface : BoundUserInterface _menu.UpdateListing(msg.Listings.ToList()); _menu.SetFooterVisibility(msg.ShowFooter); + _menu.UpdateRefund(msg.AllowRefund); break; case StoreInitializeState msg: _windowName = msg.Name; diff --git a/Content.Client/Store/Ui/StoreMenu.xaml b/Content.Client/Store/Ui/StoreMenu.xaml index a454e3e2b7..4b38352a44 100644 --- a/Content.Client/Store/Ui/StoreMenu.xaml +++ b/Content.Client/Store/Ui/StoreMenu.xaml @@ -22,6 +22,11 @@ MinWidth="64" HorizontalAlignment="Right" Text="{Loc 'store-ui-default-withdraw-text'}" /> +