Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
597639c0
Commit
597639c0
authored
Mar 06, 2017
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix eslint
parent
449ecd6c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
app/assets/javascripts/behaviors/bind_in_out.js
app/assets/javascripts/behaviors/bind_in_out.js
+0
-0
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-1
app/services/groups/create_service.rb
app/services/groups/create_service.rb
+3
-6
spec/javascripts/behaviors/bind_in_out_spec.js
spec/javascripts/behaviors/bind_in_out_spec.js
+2
-2
No files found.
app/assets/javascripts/behaviors/bind_in_out.js
.es6
→
app/assets/javascripts/behaviors/bind_in_out.js
View file @
597639c0
File moved
app/assets/javascripts/dispatcher.js
View file @
597639c0
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
/* global Labels */
/* global Labels */
/* global Shortcuts */
/* global Shortcuts */
import
BindInOut
from
'
./behaviors/bind_in_out
.js.es6
'
;
import
BindInOut
from
'
./behaviors/bind_in_out
'
;
import
GroupsList
from
'
./groups_list
'
;
import
GroupsList
from
'
./groups_list
'
;
import
ProjectsList
from
'
./projects_list
'
;
import
ProjectsList
from
'
./projects_list
'
;
...
...
app/services/groups/create_service.rb
View file @
597639c0
...
@@ -23,15 +23,12 @@ module Groups
...
@@ -23,15 +23,12 @@ module Groups
@group
.
name
||=
@group
.
path
.
dup
@group
.
name
||=
@group
.
path
.
dup
if
create_chat_team?
if
create_chat_team?
begin
response
=
Mattermost
::
CreateTeamService
.
new
(
@group
,
current_user
).
execute
response
=
Mattermost
::
CreateTeamService
.
new
(
@group
,
current_user
).
execute
return
@group
if
@group
.
errors
.
any?
@group
.
build_chat_team
(
name:
response
[
'name'
],
team_id:
response
[
'id'
])
@group
.
build_chat_team
(
name:
response
[
'name'
],
team_id:
response
[
'id'
])
end
end
return
@group
if
@group
.
errors
.
any?
end
@group
.
save
@group
.
save
@group
.
add_owner
(
current_user
)
@group
.
add_owner
(
current_user
)
@group
@group
...
...
spec/javascripts/behaviors/bind_in_out_spec.js
.es6
→
spec/javascripts/behaviors/bind_in_out_spec.js
View file @
597639c0
import BindInOut from '~/behaviors/bind_in_out
.js.es6
';
import
BindInOut
from
'
~/behaviors/bind_in_out
'
;
import ClassSpecHelper from '../helpers/class_spec_helper
.js.es6
';
import
ClassSpecHelper
from
'
../helpers/class_spec_helper
'
;
describe
(
'
BindInOut
'
,
function
()
{
describe
(
'
BindInOut
'
,
function
()
{
describe
(
'
.constructor
'
,
function
()
{
describe
(
'
.constructor
'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment