summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/components/cards/cardDetails.js29
-rw-r--r--i18n/he.i18n.json8
-rw-r--r--i18n/pl.i18n.json8
-rw-r--r--server/statistics.js10
4 files changed, 42 insertions, 13 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 781967ae..f52661b7 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -117,6 +117,35 @@ BlazeComponent.extendComponent({
},
onRendered() {
+ // Send Webhook but not create Activities records ---
+ const card = this.currentData();
+ const userId = Meteor.userId();
+ //console.log(`userId: ${userId}`);
+ //console.log(`cardId: ${card._id}`);
+ //console.log(`boardId: ${card.boardId}`);
+ //console.log(`listId: ${card.listId}`);
+ //console.log(`swimlaneId: ${card.swimlaneId}`);
+ const params = {
+ userId,
+ cardId: card._id,
+ boardId: card.boardId,
+ listId: card.listId,
+ user: Meteor.user().username,
+ url: '',
+ };
+ //console.log('looking for integrations...');
+ const integrations = Integrations.find({
+ boardId: card.boardId,
+ type: 'outgoing-webhooks',
+ enabled: true,
+ activities: { $in: ['CardDetailsRendered', 'all'] },
+ }).fetch();
+ //console.log(`Investigation length: ${integrations.length}`);
+ if (integrations.length > 0) {
+ Meteor.call('outgoingWebhooks', integrations, 'CardSelected', params);
+ }
+ //-------------
+
if (!Utils.isMiniScreen()) {
Meteor.setTimeout(() => {
$('.card-details').mCustomScrollbar({
diff --git a/i18n/he.i18n.json b/i18n/he.i18n.json
index aca91853..6dbc92a2 100644
--- a/i18n/he.i18n.json
+++ b/i18n/he.i18n.json
@@ -512,10 +512,10 @@
"new-outgoing-webhook": "קרסי רשת יוצאים חדשים",
"no-name": "(לא ידוע)",
"Node_version": "גרסת Node",
- "Meteor_version": "Meteor version",
- "MongoDB_version": "MongoDB version",
- "MongoDB_storage_engine": "MongoDB storage engine",
- "MongoDB_Oplog_enabled": "MongoDB Oplog enabled",
+ "Meteor_version": "גרסת Meteor",
+ "MongoDB_version": "גרסת MongoDB",
+ "MongoDB_storage_engine": "מנוע אחסון MongoDB",
+ "MongoDB_Oplog_enabled": "יומן הפעילות (Oplog) של MongoDB פעיל",
"OS_Arch": "ארכיטקטורת מערכת הפעלה",
"OS_Cpus": "מספר מעבדים",
"OS_Freemem": "זיכרון (RAM) פנוי",
diff --git a/i18n/pl.i18n.json b/i18n/pl.i18n.json
index 957ea469..4be843a7 100644
--- a/i18n/pl.i18n.json
+++ b/i18n/pl.i18n.json
@@ -512,10 +512,10 @@
"new-outgoing-webhook": "Nowy wychodzący webhook",
"no-name": "(nieznany)",
"Node_version": "Wersja Node",
- "Meteor_version": "Meteor version",
- "MongoDB_version": "MongoDB version",
- "MongoDB_storage_engine": "MongoDB storage engine",
- "MongoDB_Oplog_enabled": "MongoDB Oplog enabled",
+ "Meteor_version": "Wersja Meteor",
+ "MongoDB_version": "Wersja MongoDB",
+ "MongoDB_storage_engine": "Silnik MongoDB",
+ "MongoDB_Oplog_enabled": "MongoDB - włączony Oplog",
"OS_Arch": "Architektura systemu",
"OS_Cpus": "Ilość rdzeni systemu",
"OS_Freemem": "Wolna pamięć RAM",
diff --git a/server/statistics.js b/server/statistics.js
index 288a5089..997fd86f 100644
--- a/server/statistics.js
+++ b/server/statistics.js
@@ -22,7 +22,7 @@ Meteor.methods({
let nodeVersion = process.version;
nodeVersion = nodeVersion.replace('v', '');
statistics.process = {
- nodeVersion: nodeVersion,
+ nodeVersion,
pid: process.pid,
uptime: process.uptime(),
};
@@ -30,7 +30,7 @@ Meteor.methods({
let meteorVersion = Meteor.release;
meteorVersion = meteorVersion.replace('METEOR@', '');
statistics.meteor = {
- meteorVersion: meteorVersion,
+ meteorVersion,
};
// Thanks to RocketChat for MongoDB version detection !
// https://github.com/RocketChat/Rocket.Chat/blob/develop/app/utils/server/functions/getMongoInfo.js
@@ -59,9 +59,9 @@ Meteor.methods({
}
}
statistics.mongo = {
- mongoVersion: mongoVersion,
- mongoStorageEngine: mongoStorageEngine,
- mongoOplogEnabled: mongoOplogEnabled,
+ mongoVersion,
+ mongoStorageEngine,
+ mongoOplogEnabled,
};
return statistics;
},