BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
56469fc7
Unverified
Commit
56469fc7
authored
Jan 11, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uses `callDefault`
parent
3b9a1f36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
11 deletions
+33
-11
dispatcher.js
app/assets/javascripts/dispatcher.js
+33
-11
No files found.
app/assets/javascripts/dispatcher.js
View file @
56469fc7
...
...
@@ -440,10 +440,14 @@ import Activities from './activities';
break
;
case
'admin:groups:create'
:
case
'admin:groups:new'
:
import
(
'./pages/admin/groups/new'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/groups/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'admin:groups:edit'
:
import
(
'./pages/admin/groups/edit'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/groups/edit'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'groups:edit'
:
groupAvatar
();
...
...
@@ -562,7 +566,9 @@ import Activities from './activities';
import
(
'./pages/import/fogbugz/new_user_map'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
break
;
case
'admin:impersonation_tokens:index'
:
import
(
'./pages/admin/impersonation_tokens'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/impersonation_tokens'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'profiles:personal_access_tokens:index'
:
new
DueDateSelectors
();
...
...
@@ -599,35 +605,51 @@ import Activities from './activities';
// needed in rspec
gl
.
u2fAuthenticate
=
u2fAuthenticate
;
case
'admin'
:
import
(
'./pages/admin'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin'
)
.
then
(
callDefault
)
.
catch
(
fail
);
switch
(
path
[
1
])
{
case
'broadcast_messages'
:
import
(
'./pages/admin/broadcast_messages'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/broadcast_messages'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'cohorts'
:
import
(
'./pages/admin/cohorts'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/cohorts'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'groups'
:
switch
(
path
[
2
])
{
case
'show'
:
import
(
'./pages/admin/groups/show'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/groups/show'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
}
break
;
case
'projects'
:
import
(
'./pages/admin/projects'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/projects'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'labels'
:
switch
(
path
[
2
])
{
case
'new'
:
import
(
'./pages/admin/labels/new'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/labels/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'edit'
:
import
(
'./pages/admin/labels/edit'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/labels/edit'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
}
case
'abuse_reports'
:
import
(
'./pages/admin/abuse_reports'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/admin/abuse_reports'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
}
break
;
...
...
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