diff options
author | Phil Hughes <me@iamphill.com> | 2019-02-15 13:25:33 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-15 13:33:33 +0300 |
commit | d17de657fe782eb838545aabeee00285e181dce1 (patch) | |
tree | 20c5a7c0035cb7152be97065020899cbb5bdd865 /app/assets/javascripts/diffs/store | |
parent | 3f55633a2bd95c50168ecbae43230af90d88dbe3 (diff) |
Make the file tree in merge requests resizable
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51857
Diffstat (limited to 'app/assets/javascripts/diffs/store')
-rw-r--r-- | app/assets/javascripts/diffs/store/actions.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/diffs/store/actions.js b/app/assets/javascripts/diffs/store/actions.js index 7fb66ce433b..c6a691d52b0 100644 --- a/app/assets/javascripts/diffs/store/actions.js +++ b/app/assets/javascripts/diffs/store/actions.js @@ -16,6 +16,7 @@ import { MR_TREE_SHOW_KEY, TREE_LIST_STORAGE_KEY, WHITESPACE_STORAGE_KEY, + TREE_LIST_WIDTH_STORAGE_KEY, } from '../constants'; export const setBaseConfig = ({ commit }, options) => { @@ -300,5 +301,9 @@ export const toggleFileFinder = ({ commit }, visible) => { commit(types.TOGGLE_FILE_FINDER_VISIBLE, visible); }; +export const cacheTreeListWidth = (_, size) => { + localStorage.setItem(TREE_LIST_WIDTH_STORAGE_KEY, size); +}; + // prevent babel-plugin-rewire from generating an invalid default during karma tests export default () => {}; |