Merge branch 'master' into develop

This commit is contained in:
Eliot Berriot 2019-03-07 13:44:33 +01:00
commit 491c79efa0
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
10 changed files with 73 additions and 17 deletions

View file

@ -282,15 +282,18 @@ export default {
},
sortedFiles() {
// return errored files on top
return this.files.sort(f => {
return _.sortBy(this.files.map(f => {
let statusIndex = 0
if (f.errored) {
return -5;
statusIndex = -1
}
if (f.success) {
return 5;
statusIndex = 1
}
return 0;
});
f.statusIndex = statusIndex
return f
}), ['statusIndex', 'name'])
}
},
watch: {