From 6f9756762cb2362e6bacfe0f5aa1aeb23d9aecc1 Mon Sep 17 00:00:00 2001 From: rolandandai Date: Mon, 16 Jan 2023 12:22:11 +0100 Subject: [PATCH] Confirmal window added --- .ruby-version | 1 + app/decorators/group_member_decorator.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .ruby-version diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 00000000..35d16fb1 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.5.7 diff --git a/app/decorators/group_member_decorator.rb b/app/decorators/group_member_decorator.rb index e021349e..f55a403f 100644 --- a/app/decorators/group_member_decorator.rb +++ b/app/decorators/group_member_decorator.rb @@ -55,7 +55,8 @@ def inactivate_user_button(group) group_membership_inactivate_path(group.id, membership_id), method: :post, remote: true, class: 'uk-button uk-button-primary uk-button-small uk-width-auto', - id: "inactive-button-#{membership_id}" + id: "inactive-button-#{membership_id}", + data: { confirm: "Biztos, hogy öreggé szeretnéd avatni #{user.full_name}-t?" } end def archive_user_button(group)