mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
+ Updated contacts sql shema (breaking changes) + Fixes - Removed SabreDAV Server - Removed Contacts Sharing (awhile, code refactoring)
This commit is contained in:
parent
54a4c2657a
commit
d29f20789f
78 changed files with 2024 additions and 2317 deletions
|
|
@ -8,22 +8,34 @@ function SettingsContacts()
|
|||
var oData = RL.data();
|
||||
|
||||
this.contactsAutosave = oData.contactsAutosave;
|
||||
this.showPassword = ko.observable(false);
|
||||
|
||||
this.allowContactsSync = !!RL.settingsGet('ContactsSyncIsAllowed');
|
||||
this.contactsSyncServer = RL.settingsGet('ContactsSyncServer');
|
||||
this.contactsSyncUser = RL.settingsGet('ContactsSyncUser');
|
||||
this.contactsSyncPass = RL.settingsGet('ContactsSyncPassword');
|
||||
this.contactsSyncPabUrl = RL.settingsGet('ContactsSyncPabUrl');
|
||||
this.allowContactsSync = oData.allowContactsSync;
|
||||
this.enableContactsSync = oData.enableContactsSync;
|
||||
this.contactsSyncUrl = oData.contactsSyncUrl;
|
||||
this.contactsSyncUser = oData.contactsSyncUser;
|
||||
this.contactsSyncPass = oData.contactsSyncPass;
|
||||
|
||||
this.saveTrigger = ko.computed(function () {
|
||||
return [
|
||||
this.enableContactsSync() ? '1' : '0',
|
||||
this.contactsSyncUrl(),
|
||||
this.contactsSyncUser(),
|
||||
this.contactsSyncPass()
|
||||
].join('|');
|
||||
}, this).extend({'throttle': 500});
|
||||
|
||||
this.saveTrigger.subscribe(function () {
|
||||
RL.remote().saveContactsSyncData(null,
|
||||
this.enableContactsSync(),
|
||||
this.contactsSyncUrl(),
|
||||
this.contactsSyncUser(),
|
||||
this.contactsSyncPass()
|
||||
);
|
||||
}, this);
|
||||
}
|
||||
|
||||
Utils.addSettingsViewModel(SettingsContacts, 'SettingsContacts', 'SETTINGS_LABELS/LABEL_CONTACTS_NAME', 'contacts');
|
||||
|
||||
SettingsContacts.prototype.toggleShowPassword = function ()
|
||||
{
|
||||
this.showPassword(!this.showPassword());
|
||||
};
|
||||
|
||||
SettingsContacts.prototype.onBuild = function ()
|
||||
{
|
||||
RL.data().contactsAutosave.subscribe(function (bValue) {
|
||||
|
|
@ -33,7 +45,7 @@ SettingsContacts.prototype.onBuild = function ()
|
|||
});
|
||||
};
|
||||
|
||||
SettingsContacts.prototype.onShow = function ()
|
||||
{
|
||||
this.showPassword(false);
|
||||
};
|
||||
//SettingsContacts.prototype.onShow = function ()
|
||||
//{
|
||||
//
|
||||
//};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue