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
ae04c858
Commit
ae04c858
authored
Jan 15, 2018
by
Constance Okoghenun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactored use of for projects:tree:*
parent
24fa3461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
dispatcher.js
app/assets/javascripts/dispatcher.js
+2
-3
index.js
app/assets/javascripts/pages/projects/tree/show/index.js
+1
-2
No files found.
app/assets/javascripts/dispatcher.js
View file @
ae04c858
...
...
@@ -411,10 +411,9 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
break
;
case
'projects:tree:show'
:
import
(
'./pages/projects/tree/show'
)
.
then
((
module
)
=>
{
shortcut_handler
=
module
.
default
();
})
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'projects:find_file:show'
:
const
findElement
=
document
.
querySelector
(
'.js-file-finder'
);
...
...
app/assets/javascripts/pages/projects/tree/show/index.js
View file @
ae04c858
...
...
@@ -5,12 +5,11 @@ import NewCommitForm from '../../../../new_commit_form';
import
{
ajaxGet
}
from
'../../../../lib/utils/common_utils'
;
export
default
()
=>
{
new
ShortcutsNavigation
();
// eslint-disable-line no-new
new
TreeView
();
// eslint-disable-line no-new
new
BlobViewer
();
// eslint-disable-line no-new
new
NewCommitForm
(
$
(
'.js-create-dir-form'
));
// eslint-disable-line no-new
$
(
'#tree-slider'
).
waitForImages
(()
=>
ajaxGet
(
document
.
querySelector
(
'.js-tree-content'
).
dataset
.
logsPath
));
return
new
ShortcutsNavigation
();
// 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