Enhancement: Sort labels (#1995)
This commit is contained in:
parent
a0cd1f8bcc
commit
ff69ef7317
1 changed files with 10 additions and 6 deletions
|
@ -87,14 +87,18 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
activeList() {
|
||||
return this.accountLabels.filter(accountLabel =>
|
||||
this.savedLabels.includes(accountLabel.title)
|
||||
);
|
||||
return this.accountLabels
|
||||
.filter(accountLabel => this.savedLabels.includes(accountLabel.title))
|
||||
.sort((a, b) => {
|
||||
return a.title.localeCompare(b.title);
|
||||
});
|
||||
},
|
||||
inactiveList() {
|
||||
return this.accountLabels.filter(
|
||||
accountLabel => !this.savedLabels.includes(accountLabel.title)
|
||||
);
|
||||
return this.accountLabels
|
||||
.filter(accountLabel => !this.savedLabels.includes(accountLabel.title))
|
||||
.sort((a, b) => {
|
||||
return a.title.localeCompare(b.title);
|
||||
});
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue