Commit 189fe430 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '18530-disable-automatic-team-creation-mattermost' into 'master'

Default the `creation of a Mattermost team` checkbox to false

See merge request gitlab-org/gitlab!23329
parents c5a2fd79 5c7754d4
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
Mattermost Mattermost
.col-sm-10 .col-sm-10
.form-check.js-toggle-container .form-check.js-toggle-container
.js-toggle-button.form-check-input= f.check_box(:create_chat_team, { checked: true }, true, false) .js-toggle-button.form-check-input= f.check_box(:create_chat_team, { checked: false }, true, false)
= f.label :create_chat_team, class: 'form-check-label' do = f.label :create_chat_team, class: 'form-check-label' do
= _('Create a Mattermost team for this group') = _('Create a Mattermost team for this group')
%br %br
......
---
title: Default the `creation of a Mattermost team` checkbox to false
merge_request: 23329
author: briankabiro
type: changed
...@@ -82,8 +82,8 @@ describe 'Group' do ...@@ -82,8 +82,8 @@ describe 'Group' do
expect(page).to have_selector('#group_create_chat_team') expect(page).to have_selector('#group_create_chat_team')
end end
it 'checks the checkbox by default' do it 'unchecks the checkbox by default' do
expect(find('#group_create_chat_team')['checked']).to eq(true) expect(find('#group_create_chat_team')['checked']).to eq(false)
end end
it 'updates the team URL on graph path update', :js do it 'updates the team URL on graph path update', :js do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment