-
- Downloads
There was an error fetching the commit references. Please try again later.
Add list mode to file browser in diffs
This adds toggle buttons to switch between file & tree list. For file list, it renders the truncated paths with the ellipsis at the start of the path. When focusing the input, it hides the toggle buttons. On blur, the buttons get shown again. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51859
Showing
- app/assets/javascripts/diffs/components/tree_list.vue 80 additions, 21 deletionsapp/assets/javascripts/diffs/components/tree_list.vue
- app/assets/javascripts/diffs/store/utils.js 13 additions, 0 deletionsapp/assets/javascripts/diffs/store/utils.js
- app/assets/javascripts/vue_shared/components/file_row.vue 7 additions, 1 deletionapp/assets/javascripts/vue_shared/components/file_row.vue
- app/assets/stylesheets/pages/diff.scss 12 additions, 2 deletionsapp/assets/stylesheets/pages/diff.scss
- changelogs/unreleased/mr-file-list.yml 5 additions, 0 deletionschangelogs/unreleased/mr-file-list.yml
- locale/gitlab.pot 6 additions, 0 deletionslocale/gitlab.pot
- spec/javascripts/diffs/components/tree_list_spec.js 70 additions, 0 deletionsspec/javascripts/diffs/components/tree_list_spec.js
- spec/javascripts/diffs/store/utils_spec.js 28 additions, 0 deletionsspec/javascripts/diffs/store/utils_spec.js
changelogs/unreleased/mr-file-list.yml
0 → 100644
Please register or sign in to comment