debian-mirror-gitlab/app/helpers/groups/settings_helper.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
532 B
Ruby
Raw Normal View History

2021-12-11 22:18:48 +05:30
# frozen_string_literal: true
module Groups
module SettingsHelper
include GroupsHelper
def group_settings_confirm_modal_data(group, remove_form_id = nil)
{
remove_form_id: remove_form_id,
button_text: _('Remove group'),
button_testid: 'remove-group-button',
2023-03-04 22:38:38 +05:30
disabled: group.prevent_delete?.to_s,
2021-12-11 22:18:48 +05:30
confirm_danger_message: remove_group_message(group),
phrase: group.full_path
}
end
end
end
Groups::SettingsHelper.prepend_mod_with('Groups::SettingsHelper')