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

21 lines
522 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',
disabled: group.paid?.to_s,
confirm_danger_message: remove_group_message(group),
phrase: group.full_path
}
end
end
end
Groups::SettingsHelper.prepend_mod_with('Groups::SettingsHelper')