1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Electron: search

This commit is contained in:
Laurent Cozic
2017-11-17 18:57:27 +00:00
parent 2bfaa0e02c
commit 409f2ca98d
13 changed files with 243 additions and 108 deletions

View File

@@ -20,6 +20,16 @@ shared.renderTags = function(props, renderItem) {
return tagItems;
}
shared.renderSearches = function(props, renderItem) {
let searches = props.searches.slice();
let searchItems = [];
for (let i = 0; i < searches.length; i++) {
const search = searches[i];
searchItems.push(renderItem(search, props.selectedSearchId == search.id && props.notesParentType == 'Search'));
}
return searchItems;
}
shared.synchronize_press = async function(comp) {
const { Setting } = require('lib/models/setting.js');
const { reg } = require('lib/registry.js');