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
598d81cd
Commit
598d81cd
authored
Jan 15, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dispatcher-branches-create' into 'master'
Refactor dispatcher project branches create path See merge request gitlab-org/gitlab-ce!16380
parents
923d087b
4d5fdc1c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
dispatcher.js
app/assets/javascripts/dispatcher.js
+7
-2
index.js
app/assets/javascripts/pages/projects/branches/new/index.js
+3
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
598d81cd
...
@@ -6,7 +6,6 @@ import Milestone from './milestone';
...
@@ -6,7 +6,6 @@ import Milestone from './milestone';
import
IssuableForm
from
'./issuable_form'
;
import
IssuableForm
from
'./issuable_form'
;
import
LabelsSelect
from
'./labels_select'
;
import
LabelsSelect
from
'./labels_select'
;
import
MilestoneSelect
from
'./milestone_select'
;
import
MilestoneSelect
from
'./milestone_select'
;
import
NewBranchForm
from
'./new_branch_form'
;
import
NotificationsForm
from
'./notifications_form'
;
import
NotificationsForm
from
'./notifications_form'
;
import
notificationsDropdown
from
'./notifications_dropdown'
;
import
notificationsDropdown
from
'./notifications_dropdown'
;
import
groupAvatar
from
'./group_avatar'
;
import
groupAvatar
from
'./group_avatar'
;
...
@@ -213,8 +212,14 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
...
@@ -213,8 +212,14 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
initChangesDropdown
(
document
.
querySelector
(
'.navbar-gitlab'
).
offsetHeight
-
paddingTop
);
initChangesDropdown
(
document
.
querySelector
(
'.navbar-gitlab'
).
offsetHeight
-
paddingTop
);
break
;
break
;
case
'projects:branches:new'
:
case
'projects:branches:new'
:
import
(
'./pages/projects/branches/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:branches:create'
:
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
;
break
;
case
'projects:branches:index'
:
case
'projects:branches:index'
:
import
(
'./pages/projects/branches/index'
)
import
(
'./pages/projects/branches/index'
)
...
...
app/assets/javascripts/pages/projects/branches/new/index.js
0 → 100644
View file @
598d81cd
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