1
0
mirror of https://github.com/laurent22/joplin.git synced 2026-05-22 09:05:38 +02:00

Change folder from RN

This commit is contained in:
Laurent Cozic
2017-07-16 17:06:05 +01:00
parent 24f61177d1
commit c2ba2105ff
17 changed files with 139 additions and 64 deletions
+4 -5
View File
@@ -6,7 +6,7 @@ import { _ } from 'lib/locale.js';
class ReportService {
async syncStatus() {
async syncStatus(syncTarget) {
let output = {
items: {},
total: {},
@@ -19,8 +19,7 @@ class ReportService {
let ItemClass = BaseItem.getClass(d.className);
let o = {
total: await ItemClass.count(),
// synced: await ItemClass.syncedCount(), // TODO
synced: 0,
synced: await ItemClass.syncedCount(syncTarget),
};
output.items[d.className] = o;
itemCount += o.total;
@@ -47,8 +46,8 @@ class ReportService {
return output;
}
async status() {
let r = await this.syncStatus();
async status(syncTarget) {
let r = await this.syncStatus(syncTarget);
let sections = [];
let section = {};