summaryrefslogtreecommitdiffstats
path: root/client/components/settings/settingBody.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-10-24 11:39:45 +0300
committerLauri Ojansivu <x@xet7.org>2018-10-24 11:39:45 +0300
commit4cb25a5bcf5263f9c803a0a1d4ceaf6a9e5db75f (patch)
treec326c9d45b947ec9a0eb810ea503696e4a443032 /client/components/settings/settingBody.js
parent82e90f7b9424eba55435150fca8f878ac05e8634 (diff)
downloadwekan-4cb25a5bcf5263f9c803a0a1d4ceaf6a9e5db75f.tar.gz
wekan-4cb25a5bcf5263f9c803a0a1d4ceaf6a9e5db75f.tar.bz2
wekan-4cb25a5bcf5263f9c803a0a1d4ceaf6a9e5db75f.zip
- Custom Product Name in Admin Panel / Layout. In Progress, setting does not affect change UI yet. Thanks to xet7 !
- Fix LDAP User Search Scope. Thanks to Vnimos and Akuket ! Related #119 - Fix Save Admin Panel STMP password. Thanks to saurabharch and xet7 ! Closes #1856
Diffstat (limited to 'client/components/settings/settingBody.js')
-rw-r--r--client/components/settings/settingBody.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js
index 7230d893..0ff4f99c 100644
--- a/client/components/settings/settingBody.js
+++ b/client/components/settings/settingBody.js
@@ -6,6 +6,7 @@ BlazeComponent.extendComponent({
this.emailSetting = new ReactiveVar(false);
this.accountSetting = new ReactiveVar(false);
this.announcementSetting = new ReactiveVar(false);
+ this.layoutSetting = new ReactiveVar(false);
Meteor.subscribe('setting');
Meteor.subscribe('mailServer');
@@ -68,6 +69,7 @@ BlazeComponent.extendComponent({
this.emailSetting.set('email-setting' === targetID);
this.accountSetting.set('account-setting' === targetID);
this.announcementSetting.set('announcement-setting' === targetID);
+ this.layoutSetting.set('layout-setting' === targetID);
}
},
@@ -129,6 +131,25 @@ BlazeComponent.extendComponent({
},
+ saveLayout() {
+ this.setLoading(true);
+ $('li').removeClass('has-error');
+
+ try {
+ const productName = $('#product-name').val().trim();
+ Settings.update(Settings.findOne()._id, {
+ $set: {
+ 'productName': productName,
+ },
+ });
+ } catch (e) {
+ return;
+ } finally {
+ this.setLoading(false);
+ }
+
+ },
+
sendSMTPTestEmail() {
Meteor.call('sendSMTPTestEmail', (err, ret) => {
if (!err && ret) { /* eslint-disable no-console */
@@ -154,6 +175,7 @@ BlazeComponent.extendComponent({
'click button.js-email-invite': this.inviteThroughEmail,
'click button.js-save': this.saveMailServerInfo,
'click button.js-send-smtp-test-email': this.sendSMTPTestEmail,
+ 'click button.js-save-layout': this.saveLayout,
}];
},
}).register('setting');