Commit 3dc1392d authored by Phil Hughes's avatar Phil Hughes

fixed prev directory row not correctly having colspan

parent 5e5e9c19
......@@ -15,7 +15,9 @@
<template>
<tr
class="loading-file">
class="loading-file"
aria-label="Loading files"
>
<td>
<div
class="animation-container animation-container-small">
......
<script>
import eventHub from '../event_hub';
import repoMixin from '../mixins/repo_mixin';
export default {
mixins: [
repoMixin,
],
props: {
prevUrl: {
type: String,
......
......@@ -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();
},
......
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