diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-16 16:16:32 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-16 16:16:32 +0100 |
commit | 3dc1392de379af942c991dbc5ea3c6ab27eaf547 (patch) | |
tree | 5da58b89e865a5fc8116c1cf011f9a0b97dc6f2f /app | |
parent | 5e5e9c19284f8a15e0ecd72b1c8639839535dcc5 (diff) | |
download | gitlab-ce-3dc1392de379af942c991dbc5ea3c6ab27eaf547.tar.gz |
fixed prev directory row not correctly having colspan
Diffstat (limited to 'app')
3 files changed, 9 insertions, 9 deletions
diff --git a/app/assets/javascripts/repo/components/repo_loading_file.vue b/app/assets/javascripts/repo/components/repo_loading_file.vue index e2f7d3f5dbb..832b45b2b29 100644 --- a/app/assets/javascripts/repo/components/repo_loading_file.vue +++ b/app/assets/javascripts/repo/components/repo_loading_file.vue @@ -15,7 +15,9 @@ <template> <tr - class="loading-file"> + class="loading-file" + aria-label="Loading files" + > <td> <div class="animation-container animation-container-small"> diff --git a/app/assets/javascripts/repo/components/repo_prev_directory.vue b/app/assets/javascripts/repo/components/repo_prev_directory.vue index f657276ad52..c4bf6dcdec2 100644 --- a/app/assets/javascripts/repo/components/repo_prev_directory.vue +++ b/app/assets/javascripts/repo/components/repo_prev_directory.vue @@ -1,7 +1,11 @@ <script> import eventHub from '../event_hub'; + import repoMixin from '../mixins/repo_mixin'; export default { + mixins: [ + repoMixin, + ], props: { prevUrl: { type: String, diff --git a/app/assets/javascripts/repo/components/repo_sidebar.vue b/app/assets/javascripts/repo/components/repo_sidebar.vue index 12d5432d1fe..da70dedf714 100644 --- a/app/assets/javascripts/repo/components/repo_sidebar.vue +++ b/app/assets/javascripts/repo/components/repo_sidebar.vue @@ -31,16 +31,10 @@ export default { data: () => Store, computed: { flattendFiles() { - const map = (arr) => { - if (arr && arr.files && arr.files.length === 0) { - return []; - } - - return _.map(arr.files, a => [a, map(a)]); - }; + const mapFiles = arr => (!arr.files.length ? [] : _.map(arr.files, a => [a, mapFiles(a)])); return _.chain(this.files) - .map(arr => [arr, map(arr)]) + .map(arr => [arr, mapFiles(arr)]) .flatten() .value(); }, |