mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
- Admin Panel / Layout / Custom Product Name now changes webpage title.
Thanks to xet7 ! Related #1196
This commit is contained in:
parent
c066883dbd
commit
dbb1a86ca3
6 changed files with 55 additions and 15 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue