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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f2db2d09
Commit
f2db2d09
authored
Jan 11, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added imports for milestone dispatcher routes
parent
f402762d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
6 deletions
+37
-6
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+16
-6
app/assets/javascripts/pages/groups/milestones/edit/index.js
app/assets/javascripts/pages/groups/milestones/edit/index.js
+3
-0
app/assets/javascripts/pages/groups/milestones/new/index.js
app/assets/javascripts/pages/groups/milestones/new/index.js
+3
-0
app/assets/javascripts/pages/projects/milestones/edit/index.js
...ssets/javascripts/pages/projects/milestones/edit/index.js
+3
-0
app/assets/javascripts/pages/projects/milestones/new/index.js
...assets/javascripts/pages/projects/milestones/new/index.js
+3
-0
app/assets/javascripts/shared/milestones/form.js
app/assets/javascripts/shared/milestones/form.js
+9
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
f2db2d09
...
...
@@ -198,18 +198,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 @
f2db2d09
import
initForm
from
'
../../../../shared/milestones/form
'
;
export
default
()
=>
initForm
();
app/assets/javascripts/pages/groups/milestones/new/index.js
0 → 100644
View file @
f2db2d09
import
initForm
from
'
../../../../shared/milestones/form
'
;
export
default
()
=>
initForm
();
app/assets/javascripts/pages/projects/milestones/edit/index.js
0 → 100644
View file @
f2db2d09
import
initForm
from
'
../../../../shared/milestones/form
'
;
export
default
()
=>
initForm
();
app/assets/javascripts/pages/projects/milestones/new/index.js
0 → 100644
View file @
f2db2d09
import
initForm
from
'
../../../../shared/milestones/form
'
;
export
default
()
=>
initForm
();
app/assets/javascripts/shared/milestones/form.js
0 → 100644
View file @
f2db2d09
import
ZenMode
from
'
../../zen_mode
'
;
import
DueDateSelectors
from
'
../../due_date_select
'
;
import
GLForm
from
'
../../gl_form
'
;
export
default
()
=>
{
new
ZenMode
();
// eslint-disable-line no-new
new
DueDateSelectors
();
// eslint-disable-line no-new
new
GLForm
(
$
(
'
.milestone-form
'
),
true
);
// 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