mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Updated subscribables
This commit is contained in:
parent
4b6f6b1bfc
commit
004eba6be2
7 changed files with 200 additions and 219 deletions
|
|
@ -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()
|
||||
);
|
||||
});
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue