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

fixed prev directory row not correctly having colspan

parent 5e5e9c19
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
<template> <template>
<tr <tr
class="loading-file"> class="loading-file"
aria-label="Loading files"
>
<td> <td>
<div <div
class="animation-container animation-container-small"> class="animation-container animation-container-small">
......
<script> <script>
import eventHub from '../event_hub'; import eventHub from '../event_hub';
import repoMixin from '../mixins/repo_mixin';
export default { export default {
mixins: [
repoMixin,
],
props: { props: {
prevUrl: { prevUrl: {
type: String, type: String,
......
...@@ -31,16 +31,10 @@ export default { ...@@ -31,16 +31,10 @@ export default {
data: () => Store, data: () => Store,
computed: { computed: {
flattendFiles() { flattendFiles() {
const map = (arr) => { const mapFiles = arr => (!arr.files.length ? [] : _.map(arr.files, a => [a, mapFiles(a)]));
if (arr && arr.files && arr.files.length === 0) {
return [];
}
return _.map(arr.files, a => [a, map(a)]);
};
return _.chain(this.files) return _.chain(this.files)
.map(arr => [arr, map(arr)]) .map(arr => [arr, mapFiles(arr)])
.flatten() .flatten()
.value(); .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