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
3ba8ae4e
Commit
3ba8ae4e
authored
Jul 02, 2020
by
jboyson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add back default to user preference
parent
b38d667f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/assets/javascripts/diffs/index.js
app/assets/javascripts/diffs/index.js
+5
-2
No files found.
app/assets/javascripts/diffs/index.js
View file @
3ba8ae4e
...
...
@@ -89,9 +89,13 @@ export default function initDiffsApp(store) {
const
renderTreeList
=
treeListStored
!==
null
?
parseBoolean
(
treeListStored
)
:
true
;
this
.
setRenderTreeList
(
renderTreeList
);
// Set whitespace default as per user preferences
const
hideWhitespace
=
this
.
showWhitespaceDefault
?
'
0
'
:
'
1
'
;
this
.
setShowWhitespace
({
showWhitespace
:
hideWhitespace
!==
'
1
'
});
},
methods
:
{
...
mapActions
(
'
diffs
'
,
[
'
setRenderTreeList
'
]),
...
mapActions
(
'
diffs
'
,
[
'
setRenderTreeList
'
,
'
setShowWhitespace
'
]),
},
render
(
createElement
)
{
return
createElement
(
'
diffs-app
'
,
{
...
...
@@ -108,7 +112,6 @@ export default function initDiffsApp(store) {
isFluidLayout
:
this
.
isFluidLayout
,
dismissEndpoint
:
this
.
dismissEndpoint
,
showSuggestPopover
:
this
.
showSuggestPopover
,
showWhitespaceDefault
:
this
.
showWhitespaceDefault
,
},
});
},
...
...
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