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
acefbad2
Commit
acefbad2
authored
Jan 11, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor dispatcher project branches create path
parent
82007530
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+7
-1
app/assets/javascripts/pages/projects/branches/create/index.js
...ssets/javascripts/pages/projects/branches/create/index.js
+3
-0
app/assets/javascripts/pages/projects/branches/new/index.js
app/assets/javascripts/pages/projects/branches/new/index.js
+3
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
acefbad2
...
...
@@ -266,8 +266,14 @@ import Activities from './activities';
initChangesDropdown
(
document
.
querySelector
(
'
.navbar-gitlab
'
).
offsetHeight
-
paddingTop
);
break
;
case
'
projects:branches:new
'
:
import
(
'
./pages/projects/branches/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:branches:create
'
:
new
NewBranchForm
(
$
(
'
.js-create-branch-form
'
),
JSON
.
parse
(
document
.
getElementById
(
'
availableRefs
'
).
innerHTML
));
import
(
'
./pages/projects/branches/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:branches:index
'
:
AjaxLoadingSpinner
.
init
();
...
...
app/assets/javascripts/pages/projects/branches/create/index.js
0 → 100644
View file @
acefbad2
import
NewBranchForm
from
'
~/new_branch_form
'
;
export
default
()
=>
new
NewBranchForm
(
$
(
'
.js-create-branch-form
'
),
JSON
.
parse
(
document
.
getElementById
(
'
availableRefs
'
).
innerHTML
));
app/assets/javascripts/pages/projects/branches/new/index.js
0 → 100644
View file @
acefbad2
import
NewBranchForm
from
'
~/new_branch_form
'
;
export
default
()
=>
new
NewBranchForm
(
$
(
'
.js-create-branch-form
'
),
JSON
.
parse
(
document
.
getElementById
(
'
availableRefs
'
).
innerHTML
));
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