mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 08:19:55 +02:00
Merge branch 'master' into develop
This commit is contained in:
commit
491c79efa0
10 changed files with 73 additions and 17 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue