summaryrefslogtreecommitdiffstats
path: root/models/settings.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-12-15 20:39:01 +0200
committerLauri Ojansivu <x@xet7.org>2018-12-15 20:39:01 +0200
commitdbb1a86ca377e551063cc04c5189fad4aa9148c0 (patch)
tree0c2eebc93e53c0416faa56b31fb0bebd9af60ca1 /models/settings.js
parentc066883dbd76110be19d75bd77ef2a0270dadda2 (diff)
downloadwekan-dbb1a86ca377e551063cc04c5189fad4aa9148c0.tar.gz
wekan-dbb1a86ca377e551063cc04c5189fad4aa9148c0.tar.bz2
wekan-dbb1a86ca377e551063cc04c5189fad4aa9148c0.zip
- Admin Panel / Layout / Custom Product Name now changes webpage title.
Thanks to xet7 ! Related #1196
Diffstat (limited to 'models/settings.js')
-rw-r--r--models/settings.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/models/settings.js b/models/settings.js
index 52212809..5db57cd8 100644
--- a/models/settings.js
+++ b/models/settings.js
@@ -74,7 +74,7 @@ if (Meteor.isServer) {
if(!setting){
const now = new Date();
const domain = process.env.ROOT_URL.match(/\/\/(?:www\.)?(.*)?(?:\/)?/)[1];
- const from = `Wekan <wekan@${domain}>`;
+ const from = `Boards Support <support@${domain}>`;
const defaultSetting = {disableRegistration: false, mailServer: {
username: '', password: '', host: '', port: '', enableTLS: false, from,
}, createdAt: now, modifiedAt: now};
@@ -210,6 +210,19 @@ if (Meteor.isServer) {
};
},
+ getCustomUI(){
+ const setting = Settings.findOne({});
+ if (!setting.productName) {
+ return {
+ productName: 'Wekan',
+ };
+ } else {
+ return {
+ productName: `${setting.productName}`,
+ };
+ }
+ },
+
getMatomoConf(){
return {
address: getEnvVar('MATOMO_ADDRESS'),