1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Various changes

This commit is contained in:
Laurent Cozic
2017-08-22 19:57:35 +02:00
parent 67b812cab0
commit d9c85a7275
17 changed files with 157 additions and 59 deletions

View File

@@ -195,9 +195,11 @@ class SideMenuContentComponent extends Component {
}
if (this.props.tags.length) {
let tags = this.props.tags.slice();
tags.sort((a, b) => { return a.title < b.title ? -1 : +1; });
let tagItems = [];
for (let i = 0; i < this.props.tags.length; i++) {
const tag = this.props.tags[i];
for (let i = 0; i < tags.length; i++) {
const tag = tags[i];
tagItems.push(this.tagItem(tag, this.props.selectedTagId == tag.id && this.props.notesParentType == 'Tag'));
}