Sort labels alphabetically on tasks
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2021-07-22 22:05:34 +02:00
parent fe4a8c17c8
commit 83b530b8ba
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ export default class TaskModel extends AbstractModel {
this.labels = this.labels.map(l => {
return new LabelModel(l)
})
.sort((f, s) => f.title > s.title)
if (this.hexColor !== '' && this.hexColor.substring(0, 1) !== '#') {
this.hexColor = '#' + this.hexColor