diff options
author | Phil Hughes <me@iamphill.com> | 2019-01-24 17:48:03 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-01-24 17:48:03 +0300 |
commit | 2f40aa68d92f3f51167aaccc9fab2801ee185605 (patch) | |
tree | 54f8d590511170db8d7f4db6a16dda1830a9ec54 /app/assets/javascripts/diffs/store/mutations.js | |
parent | da251c6436d6e17b18911d37c1b18314fb29329d (diff) |
Added dropdown for diff settings
Dropdown includes buttons for tree view rendering mode
and buttons for the compare view (inline or side-by-side)
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55491
Diffstat (limited to 'app/assets/javascripts/diffs/store/mutations.js')
-rw-r--r-- | app/assets/javascripts/diffs/store/mutations.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/diffs/store/mutations.js b/app/assets/javascripts/diffs/store/mutations.js index 00095997ba3..4aeb393b29b 100644 --- a/app/assets/javascripts/diffs/store/mutations.js +++ b/app/assets/javascripts/diffs/store/mutations.js @@ -238,4 +238,10 @@ export default { state.treeEntries = treeEntries; state.tree = tree; }, + [types.SET_RENDER_TREE_LIST](state, renderTreeList) { + state.renderTreeList = renderTreeList; + }, + [types.SET_SHOW_WHITESPACE](state, showWhitespace) { + state.showWhitespace = showWhitespace; + }, }; |