summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/settings.js15
-rw-r--r--models/trelloCreator.js4
-rw-r--r--models/wekanCreator.js2
3 files changed, 17 insertions, 4 deletions
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 <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'),
diff --git a/models/trelloCreator.js b/models/trelloCreator.js
index b5a255cc..3ac511a5 100644
--- a/models/trelloCreator.js
+++ b/models/trelloCreator.js
@@ -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;
diff --git a/models/wekanCreator.js b/models/wekanCreator.js
index fa950970..2d3ec5de 100644
--- a/models/wekanCreator.js
+++ b/models/wekanCreator.js
@@ -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({