mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Merge branch 'dev' of github.com:laurent22/joplin into dev
This commit is contained in:
commit
58d4a69053
2
.github/stale.yml
vendored
2
.github/stale.yml
vendored
@ -9,7 +9,7 @@ exemptLabels:
|
|||||||
- "upstream"
|
- "upstream"
|
||||||
- "backlog"
|
- "backlog"
|
||||||
- "high"
|
- "high"
|
||||||
- "full-spec"
|
- "spec"
|
||||||
# Label to use when marking an issue as stale
|
# Label to use when marking an issue as stale
|
||||||
staleLabel: stale
|
staleLabel: stale
|
||||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
@ -227,7 +227,7 @@ class Dialog extends React.PureComponent {
|
|||||||
} else {
|
} else {
|
||||||
const limit = 20;
|
const limit = 20;
|
||||||
const searchKeywords = this.keywords(searchQuery);
|
const searchKeywords = this.keywords(searchQuery);
|
||||||
const notes = await Note.byIds(results.map(result => result.id).slice(0, limit), { fields: ['id', 'body', 'markup_language'] });
|
const notes = await Note.byIds(results.map(result => result.id).slice(0, limit), { fields: ['id', 'body', 'markup_language', 'is_todo', 'todo_completed'] });
|
||||||
const notesById = notes.reduce((obj, { id, body, markup_language }) => ((obj[[id]] = { id, body, markup_language }), obj), {});
|
const notesById = notes.reduce((obj, { id, body, markup_language }) => ((obj[[id]] = { id, body, markup_language }), obj), {});
|
||||||
|
|
||||||
for (let i = 0; i < results.length; i++) {
|
for (let i = 0; i < results.length; i++) {
|
||||||
@ -269,6 +269,10 @@ class Dialog extends React.PureComponent {
|
|||||||
results[i] = Object.assign({}, row, { path: path, fragments: '' });
|
results[i] = Object.assign({}, row, { path: path, fragments: '' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.props.showCompletedTodos) {
|
||||||
|
results = results.filter((row) => !row.is_todo || !row.todo_completed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -449,6 +453,7 @@ const mapStateToProps = (state) => {
|
|||||||
return {
|
return {
|
||||||
folders: state.folders,
|
folders: state.folders,
|
||||||
theme: state.settings.theme,
|
theme: state.settings.theme,
|
||||||
|
showCompletedTodos: state.settings.showCompletedTodos,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user