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
a480f851
Commit
a480f851
authored
Jan 16, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EE port of dispatcher-milestones
parent
6f3f8bf5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
7 deletions
+37
-7
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+16
-7
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 @
a480f851
...
...
@@ -57,7 +57,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
'
;
...
...
@@ -210,18 +209,28 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
.
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
'
groups:epics:show
'
:
new
ZenMode
();
...
...
app/assets/javascripts/pages/groups/milestones/edit/index.js
0 → 100644
View file @
a480f851
import
initForm
from
'
../../../../shared/milestones/form
'
;
export
default
()
=>
initForm
(
false
);
app/assets/javascripts/pages/groups/milestones/new/index.js
0 → 100644
View file @
a480f851
import
initForm
from
'
../../../../shared/milestones/form
'
;
export
default
()
=>
initForm
(
false
);
app/assets/javascripts/pages/projects/milestones/edit/index.js
0 → 100644
View file @
a480f851
import
initForm
from
'
../../../../shared/milestones/form
'
;
export
default
()
=>
initForm
();
app/assets/javascripts/pages/projects/milestones/new/index.js
0 → 100644
View file @
a480f851
import
initForm
from
'
../../../../shared/milestones/form
'
;
export
default
()
=>
initForm
();
app/assets/javascripts/shared/milestones/form.js
0 → 100644
View file @
a480f851
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