summaryrefslogtreecommitdiffstats
path: root/client/lib
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 /client/lib
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 'client/lib')
-rw-r--r--client/lib/utils.js20
1 files changed, 20 insertions, 0 deletions
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]);