Cleanup Contacts/AddressBook PDO settings

This commit is contained in:
djmaze 2021-04-09 17:06:17 +02:00
parent 275e5c5947
commit 0374ded776
4 changed files with 8 additions and 11 deletions

View file

@ -19,7 +19,7 @@ export class ContactsAdminSettings {
addObservablesTo(this, {
enableContacts: !!SettingsGet('ContactsEnable'),
contactsSync: !!SettingsGet('ContactsSync'),
contactsType: '',
contactsType: SettingsGet('ContactsPdoType'),
pdoDsn: SettingsGet('ContactsPdoDsn'),
pdoUser: SettingsGet('ContactsPdoUser'),
@ -69,8 +69,6 @@ export class ContactsAdminSettings {
})
.extend({ notify: 'always' });
this.contactsType(SettingsGet('ContactsPdoType'));
addSubscribablesTo(this, {
enableContacts: value =>
Remote.saveAdminConfig(null, {