Updated subscribables

This commit is contained in:
djmaze 2021-03-16 11:38:40 +01:00
parent 4b6f6b1bfc
commit 004eba6be2
7 changed files with 200 additions and 219 deletions

View file

@ -24,23 +24,21 @@ export class ContactsUserSettings {
].join('|')
)
.extend({ debounce: 500 });
}
onBuild() {
this.contactsAutosave.subscribe((value) => {
this.contactsAutosave.subscribe(value =>
Remote.saveSettings(null, {
'ContactsAutosave': value ? '1' : '0'
});
});
'ContactsAutosave': value ? 1 : 0
})
);
this.saveTrigger.subscribe(() => {
this.saveTrigger.subscribe(() =>
Remote.saveContactsSyncData(
null,
ContactUserStore.enableSync(),
ContactUserStore.syncUrl(),
ContactUserStore.syncUser(),
ContactUserStore.syncPass()
);
});
)
);
}
}