Commit 3ba8ae4e authored by jboyson's avatar jboyson

Add back default to user preference

parent b38d667f
...@@ -89,9 +89,13 @@ export default function initDiffsApp(store) { ...@@ -89,9 +89,13 @@ export default function initDiffsApp(store) {
const renderTreeList = treeListStored !== null ? parseBoolean(treeListStored) : true; const renderTreeList = treeListStored !== null ? parseBoolean(treeListStored) : true;
this.setRenderTreeList(renderTreeList); this.setRenderTreeList(renderTreeList);
// Set whitespace default as per user preferences
const hideWhitespace = this.showWhitespaceDefault ? '0' : '1';
this.setShowWhitespace({ showWhitespace: hideWhitespace !== '1' });
}, },
methods: { methods: {
...mapActions('diffs', ['setRenderTreeList']), ...mapActions('diffs', ['setRenderTreeList', 'setShowWhitespace']),
}, },
render(createElement) { render(createElement) {
return createElement('diffs-app', { return createElement('diffs-app', {
...@@ -108,7 +112,6 @@ export default function initDiffsApp(store) { ...@@ -108,7 +112,6 @@ export default function initDiffsApp(store) {
isFluidLayout: this.isFluidLayout, isFluidLayout: this.isFluidLayout,
dismissEndpoint: this.dismissEndpoint, dismissEndpoint: this.dismissEndpoint,
showSuggestPopover: this.showSuggestPopover, showSuggestPopover: this.showSuggestPopover,
showWhitespaceDefault: this.showWhitespaceDefault,
}, },
}); });
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment