diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/components/settings/settingBody.js | 2 | ||||
-rw-r--r-- | client/lib/utils.js | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index ddb4cd0f..3f6f36f4 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -155,6 +155,8 @@ BlazeComponent.extendComponent({ this.setLoading(false); } + DocHead.setTitle(productName); + saveMailServerInfo(); }, diff --git a/client/lib/utils.js b/client/lib/utils.js index 525cfb83..d46d8076 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -145,6 +145,26 @@ Utils = { }); }, + manageCustomUI(){ + Meteor.call('getCustomUI', (err, data) => { + if (err && err.error[0] === 'var-not-exist'){ + Session.set('customUI', false); // siteId || address server not defined + } + if (!err){ + Utils.setCustomUI(data); + } + }); + }, + + setCustomUI(data){ + const currentBoard = Boards.findOne(Session.get('currentBoard')); + if (currentBoard) { + DocHead.setTitle(`${currentBoard.title } - ${ data.productName}`); + } else { + DocHead.setTitle(`${data.productName}`); + } + }, + setMatomo(data){ window._paq = window._paq || []; window._paq.push(['setDoNotTrack', data.doNotTrack]); |