Commit e9c66be1 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Changed how lists get sorted

parent 948b4828
......@@ -61,6 +61,8 @@ $(() => {
}
});
this.state.lists = _.sortBy(this.state.lists, 'position');
Store.addBlankState();
this.loading = false;
});
......
......@@ -65,6 +65,8 @@
color: label.color
}
});
Store.state.lists = _.sortBy(Store.state.lists, 'position');
}
}
});
......
......@@ -27,8 +27,6 @@
const list = new List(listObj);
this.state.lists.push(list);
this.state.lists = _.sortBy(this.state.lists, 'position');
return list;
},
new (listObj) {
......@@ -62,6 +60,8 @@
title: 'Welcome to your Issue Board!',
position: 0
});
this.state.lists = _.sortBy(this.state.lists, 'position');
},
removeBlankState () {
this.removeList('blank');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment