parent
55436661af
commit
fd5d331eca
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +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)
|
||||
.sort((f, s) => f.title > s.title ? 1 : -1)
|
||||
|
||||
if (this.hexColor !== '' && this.hexColor.substring(0, 1) !== '#') {
|
||||
this.hexColor = '#' + this.hexColor
|
||||
|
|
|
@ -132,7 +132,7 @@ export default {
|
|||
},
|
||||
computed: mapState({
|
||||
userInfo: state => state.auth.info,
|
||||
labels: state => Object.values(state.labels.labels).sort((f, s) => f.title > s.title), // Alphabetically sort the labels
|
||||
labels: state => Object.values(state.labels.labels).sort((f, s) => f.title > s.title ? 1 : -1), // Alphabetically sort the labels
|
||||
loading: state => state[LOADING] && state[LOADING_MODULE] === 'labels',
|
||||
}),
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue