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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
6fcef535
Commit
6fcef535
authored
Jan 11, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor dispatcher project branches path
parent
685780d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+3
-4
app/assets/javascripts/pages/projects/branches/index/index.js
...assets/javascripts/pages/projects/branches/index/index.js
+7
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
6fcef535
...
...
@@ -30,7 +30,6 @@ import CommitsList from './commits';
import
Issue
from
'
./issue
'
;
import
BindInOut
from
'
./behaviors/bind_in_out
'
;
import
SecretValues
from
'
./behaviors/secret_values
'
;
import
DeleteModal
from
'
./branches/branches_delete_modal
'
;
import
Group
from
'
./group
'
;
import
ProjectsList
from
'
./projects_list
'
;
import
setupProjectEdit
from
'
./project_edit
'
;
...
...
@@ -59,7 +58,6 @@ import GpgBadges from './gpg_badges';
import
initChangesDropdown
from
'
./init_changes_dropdown
'
;
import
NewGroupChild
from
'
./groups/new_group_child
'
;
import
{
ajaxGet
,
convertPermissionToBoolean
}
from
'
./lib/utils/common_utils
'
;
import
AjaxLoadingSpinner
from
'
./ajax_loading_spinner
'
;
import
GlFieldErrors
from
'
./gl_field_errors
'
;
import
GLForm
from
'
./gl_form
'
;
import
Shortcuts
from
'
./shortcuts
'
;
...
...
@@ -246,8 +244,9 @@ import Activities from './activities';
new
NewBranchForm
(
$
(
'
.js-create-branch-form
'
),
JSON
.
parse
(
document
.
getElementById
(
'
availableRefs
'
).
innerHTML
));
break
;
case
'
projects:branches:index
'
:
AjaxLoadingSpinner
.
init
();
new
DeleteModal
();
import
(
'
./pages/projects/branches/index
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:issues:new
'
:
case
'
projects:issues:edit
'
:
...
...
app/assets/javascripts/pages/projects/branches/index/index.js
0 → 100644
View file @
6fcef535
import
AjaxLoadingSpinner
from
'
~/ajax_loading_spinner
'
;
import
DeleteModal
from
'
~/branches/branches_delete_modal
'
;
export
default
()
=>
{
AjaxLoadingSpinner
.
init
();
new
DeleteModal
();
// 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