diff --git a/src/services/CouchService.ts b/src/services/CouchService.ts index 87cf8f8..1749654 100644 --- a/src/services/CouchService.ts +++ b/src/services/CouchService.ts @@ -69,10 +69,10 @@ class CouchService { }) .on('change', (result: PouchDB.Replication.SyncResult) => { if (result.direction === 'pull') { - const docNoCurrency = result.change.docs.find( - (doc: any) => !doc._id.startsWith('cur') + const hasDocOtherThanExchange = result.change.docs.some( + (doc: any) => doc.doctype !== 'exchange' ) - if (docNoCurrency) { + if (hasDocOtherThanExchange) { emit(SYNC) confirmation('Mise à jour...') } diff --git a/src/styles/index.scss b/src/styles/index.scss index dde12f1..e31f602 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -17,7 +17,6 @@ html { body { background-color: white; - padding: 15px 0 0; } .app { diff --git a/src/views/accounts/AccountItem.vue b/src/views/accounts/AccountItem.vue index 9c86cd9..26f0608 100644 --- a/src/views/accounts/AccountItem.vue +++ b/src/views/accounts/AccountItem.vue @@ -448,6 +448,9 @@ export default class AccountItem extends BaseAccount { a { color: var(--primary-font-color); } + .account-title { + margin-top: 10px; + } .account-title { span, a {