From 9c73dac5bebb7de1bd8aab89e50612fad98364b7 Mon Sep 17 00:00:00 2001 From: ThereDrD0 <88589686+ThereDrD0@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:44:40 +0300 Subject: [PATCH] fix: access can be granted again (#373) --- Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs b/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs index e2bc54ed0d..f43f8bd314 100644 --- a/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs +++ b/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs @@ -73,12 +73,15 @@ namespace Content.Client.Access.UI AccessLevelControlContainer.AddChild(departmentGrid); } - - foreach (var (id, button) in _groupAccessButtons.ButtonsList) + foreach (var department in _groupAccessButtons.ButtonGroups) { - button.OnPressed += _ => SubmitData(); + foreach (var button in department.Values) + { + button.OnPressed += _ => SubmitData(); + } } + //WD-EDIT if (!_entityManager.TryGetComponent(owner.Owner, out var idConsoleComponent)) return;