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
a35aa237
Commit
a35aa237
authored
Feb 09, 2018
by
Simon Knox
Committed by
Clement Ho
Feb 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "EE-only js for project edit page"
parent
a09b4eaf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-1
app/assets/javascripts/pages/projects/edit/index.js
app/assets/javascripts/pages/projects/edit/index.js
+0
-14
ee/app/assets/javascripts/pages/projects/edit/index.js
ee/app/assets/javascripts/pages/projects/edit/index.js
+16
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
a35aa237
...
...
@@ -336,7 +336,7 @@ var Dispatcher;
// ee-end
break
;
case
'
projects:edit
'
:
import
(
'
.
/pages/projects/edit
'
)
import
(
/* webpackChunkName: "ee_projects_edit" */
'
ee
/pages/projects/edit
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
...
...
app/assets/javascripts/pages/projects/edit/index.js
View file @
a35aa237
/* eslint-disable no-new */
import
UsersSelect
from
'
~/users_select
'
;
import
UserCallout
from
'
~/user_callout
'
;
import
groupsSelect
from
'
~/groups_select
'
;
import
initSettingsPanels
from
'
~/settings_panels
'
;
import
setupProjectEdit
from
'
~/project_edit
'
;
import
ProjectNew
from
'
../shared/project_new
'
;
import
projectAvatar
from
'
../shared/project_avatar
'
;
import
initProjectPermissionsSettings
from
'
../shared/permissions
'
;
// EE imports
import
ApproversSelect
from
'
ee/approvers_select
'
;
// eslint-disable-line import/first
export
default
()
=>
{
new
ProjectNew
();
// eslint-disable-line no-new
new
UsersSelect
();
groupsSelect
();
setupProjectEdit
();
// Initialize expandable settings panels
initSettingsPanels
();
projectAvatar
();
initProjectPermissionsSettings
();
new
UserCallout
({
className
:
'
js-service-desk-callout
'
});
new
UserCallout
({
className
:
'
js-mr-approval-callout
'
});
// EE imports
new
ApproversSelect
();
// eslint-disable-line no-new
};
ee/app/assets/javascripts/pages/projects/edit/index.js
0 → 100644
View file @
a35aa237
/* eslint-disable no-new */
import
initCePage
from
'
~/pages/projects/edit
'
;
import
UsersSelect
from
'
~/users_select
'
;
import
UserCallout
from
'
~/user_callout
'
;
import
groupsSelect
from
'
~/groups_select
'
;
import
ApproversSelect
from
'
ee/approvers_select
'
;
export
default
()
=>
{
new
UsersSelect
();
groupsSelect
();
initCePage
();
new
UserCallout
({
className
:
'
js-service-desk-callout
'
});
new
UserCallout
({
className
:
'
js-mr-approval-callout
'
});
new
ApproversSelect
();
};
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