summaryrefslogtreecommitdiffstats
path: root/client/components/settings/settingBody.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-12-12 14:32:37 +0200
committerLauri Ojansivu <x@xet7.org>2017-12-12 14:32:37 +0200
commit047e22571e39d0459ce53c765fdb19060d71756d (patch)
tree8e255f5f187e69d3659781b3f7eb027f8a51bd4f /client/components/settings/settingBody.js
parented95542b675aa34dee1c6eaafb1fb3a157215039 (diff)
parentf115e33f6672bfe6fa625b190a01514f8aaa8870 (diff)
downloadwekan-047e22571e39d0459ce53c765fdb19060d71756d.tar.gz
wekan-047e22571e39d0459ce53c765fdb19060d71756d.tar.bz2
wekan-047e22571e39d0459ce53c765fdb19060d71756d.zip
Merge branch 'devel'
Diffstat (limited to 'client/components/settings/settingBody.js')
-rw-r--r--client/components/settings/settingBody.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js
index 5b015918..8c1ff1c7 100644
--- a/client/components/settings/settingBody.js
+++ b/client/components/settings/settingBody.js
@@ -1,8 +1,3 @@
-Meteor.subscribe('setting');
-Meteor.subscribe('mailServer');
-Meteor.subscribe('accountSettings');
-Meteor.subscribe('announcements');
-
BlazeComponent.extendComponent({
onCreated() {
this.error = new ReactiveVar('');
@@ -11,6 +6,11 @@ BlazeComponent.extendComponent({
this.emailSetting = new ReactiveVar(false);
this.accountSetting = new ReactiveVar(false);
this.announcementSetting = new ReactiveVar(false);
+
+ Meteor.subscribe('setting');
+ Meteor.subscribe('mailServer');
+ Meteor.subscribe('accountSettings');
+ Meteor.subscribe('announcements');
},
setError(error) {
@@ -116,7 +116,7 @@ BlazeComponent.extendComponent({
const from = this.checkField('#mail-server-from');
const tls = $('#mail-server-tls.is-checked').length > 0;
Settings.update(Settings.findOne()._id, {$set:{'mailServer.host':host, 'mailServer.port': port, 'mailServer.username': username,
- 'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from}});
+ 'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from}});
} catch (e) {
return;
} finally {