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
3811fbff
Unverified
Commit
3811fbff
authored
Oct 26, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset hash when changing files
[ci skip]
parent
5c0c345a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
repo_preview.vue
app/assets/javascripts/repo/components/repo_preview.vue
+0
-2
file.js
app/assets/javascripts/repo/stores/actions/file.js
+3
-0
No files found.
app/assets/javascripts/repo/components/repo_preview.vue
View file @
3811fbff
...
...
@@ -15,8 +15,6 @@ export default {
},
mounted
()
{
this
.
highlightFile
();
// TODO: get this to work across different files
this
.
lineHighlighter
=
new
LineHighlighter
({
fileHolderSelector
:
'.blob-viewer-container'
,
scrollFileHolder
:
true
,
...
...
app/assets/javascripts/repo/stores/actions/file.js
View file @
3811fbff
...
...
@@ -39,6 +39,9 @@ export const setFileActive = ({ commit, state, getters, dispatch }, file) => {
commit
(
types
.
SET_FILE_ACTIVE
,
{
file
,
active
:
true
});
dispatch
(
'scrollToTab'
);
// reset hash for line highlighting
location
.
hash
=
''
;
};
export
const
getFileData
=
({
state
,
commit
,
dispatch
},
file
)
=>
{
...
...
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