From dbb1a86ca377e551063cc04c5189fad4aa9148c0 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 15 Dec 2018 20:39:01 +0200 Subject: - Admin Panel / Layout / Custom Product Name now changes webpage title. Thanks to xet7 ! Related #1196 --- models/settings.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'models/settings.js') 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 `; + const from = `Boards Support `; 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'), -- cgit v1.2.3-1-g7c22