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
7a9c3264
Commit
7a9c3264
authored
Jan 16, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dispatcher-milestones' into 'master'
Added imports for milestone dispatcher routes See merge request gitlab-org/gitlab-ce!16387
parents
0504f37d
913a430e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
7 deletions
+37
-7
dispatcher.js
app/assets/javascripts/dispatcher.js
+16
-7
index.js
app/assets/javascripts/pages/groups/milestones/edit/index.js
+3
-0
index.js
app/assets/javascripts/pages/groups/milestones/new/index.js
+3
-0
index.js
...ssets/javascripts/pages/projects/milestones/edit/index.js
+3
-0
index.js
...assets/javascripts/pages/projects/milestones/new/index.js
+3
-0
form.js
app/assets/javascripts/shared/milestones/form.js
+9
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
7a9c3264
...
...
@@ -54,7 +54,6 @@ import ShortcutsIssuable from './shortcuts_issuable';
import
U2FAuthenticate
from
'./u2f/authenticate'
;
import
Members
from
'./members'
;
import
memberExpirationDate
from
'./member_expiration_date'
;
import
DueDateSelectors
from
'./due_date_select'
;
import
Diff
from
'./diff'
;
import
ProjectLabelSubscription
from
'./project_label_subscription'
;
import
SearchAutocomplete
from
'./search_autocomplete'
;
...
...
@@ -185,18 +184,28 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
.
catch
(
fail
);
break
;
case
'projects:milestones:new'
:
case
'projects:milestones:create'
:
import
(
'./pages/projects/milestones/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:milestones:edit'
:
case
'projects:milestones:update'
:
new
ZenMode
();
new
DueDateSelectors
();
new
GLForm
(
$
(
'.milestone-form'
),
true
);
import
(
'./pages/projects/milestones/edit'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'groups:milestones:new'
:
case
'groups:milestones:create'
:
import
(
'./pages/groups/milestones/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'groups:milestones:edit'
:
case
'groups:milestones:update'
:
new
ZenMode
();
new
DueDateSelectors
();
new
GLForm
(
$
(
'.milestone-form'
),
false
);
import
(
'./pages/groups/milestones/edit'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:compare:show'
:
new
Diff
();
...
...
app/assets/javascripts/pages/groups/milestones/edit/index.js
0 → 100644
View file @
7a9c3264
import
initForm
from
'../../../../shared/milestones/form'
;
export
default
()
=>
initForm
(
false
);
app/assets/javascripts/pages/groups/milestones/new/index.js
0 → 100644
View file @
7a9c3264
import
initForm
from
'../../../../shared/milestones/form'
;
export
default
()
=>
initForm
(
false
);
app/assets/javascripts/pages/projects/milestones/edit/index.js
0 → 100644
View file @
7a9c3264
import
initForm
from
'../../../../shared/milestones/form'
;
export
default
()
=>
initForm
();
app/assets/javascripts/pages/projects/milestones/new/index.js
0 → 100644
View file @
7a9c3264
import
initForm
from
'../../../../shared/milestones/form'
;
export
default
()
=>
initForm
();
app/assets/javascripts/shared/milestones/form.js
0 → 100644
View file @
7a9c3264
import
ZenMode
from
'../../zen_mode'
;
import
DueDateSelectors
from
'../../due_date_select'
;
import
GLForm
from
'../../gl_form'
;
export
default
(
initGFM
=
true
)
=>
{
new
ZenMode
();
// eslint-disable-line no-new
new
DueDateSelectors
();
// eslint-disable-line no-new
new
GLForm
(
$
(
'.milestone-form'
),
initGFM
);
// eslint-disable-line no-new
};
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