More ko.computed to pureComputed

This commit is contained in:
djmaze 2021-12-31 17:02:32 +01:00
parent a15454fd15
commit 679d7356e0
8 changed files with 46 additions and 50 deletions

View file

@ -1,4 +1,5 @@
import ko from 'ko';
import { koComputable } from 'External/ko';
import { SettingsGet } from 'Common/Globals';
import { ContactUserStore } from 'Stores/User/Contact';
@ -14,8 +15,7 @@ export class ContactsUserSettings /*extends AbstractViewSettings*/ {
this.contactsSyncUser = ContactUserStore.syncUser;
this.contactsSyncPass = ContactUserStore.syncPass;
this.saveTrigger = ko
.computed(() =>
this.saveTrigger = koComputable(() =>
[
ContactUserStore.enableSync() ? '1' : '0',
ContactUserStore.syncUrl(),