- Admin Panel / Layout / Custom Product Name now changes webpage title.

Thanks to xet7 !

Related #1196
This commit is contained in:
Lauri Ojansivu 2018-12-15 20:39:01 +02:00
parent c066883dbd
commit dbb1a86ca3
6 changed files with 55 additions and 15 deletions

View file

@ -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'),

View file

@ -268,7 +268,7 @@ export class TrelloCreator {
}
// insert card
const cardId = Cards.direct.insert(cardToCreate);
// keep track of Trello id => WeKan id
// keep track of Trello id => Wekan id
this.cards[card.id] = cardId;
// log activity
// Activities.direct.insert({
@ -431,7 +431,7 @@ export class TrelloCreator {
sort: checklist.pos,
};
const checklistId = Checklists.direct.insert(checklistToCreate);
// keep track of Trello id => WeKan id
// keep track of Trello id => Wekan id
this.checklists[checklist.id] = checklistId;
// Now add the items to the checklistItems
let counter = 0;

View file

@ -300,7 +300,7 @@ export class WekanCreator {
}
// insert card
const cardId = Cards.direct.insert(cardToCreate);
// keep track of Wekan id => WeKan id
// keep track of Wekan id => Wekan id
this.cards[card._id] = cardId;
// // log activity
// Activities.direct.insert({