summaryrefslogtreecommitdiffstats
path: root/webapp/stores/integration_store.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-09-08 08:49:03 -0400
committerenahum <nahumhbl@gmail.com>2016-09-08 09:49:03 -0300
commitfaf944f47a9bc84365a7ddd949fc7e7b1ac2c057 (patch)
tree9a2a5700e8744e01e2b50907cf291dfd60489714 /webapp/stores/integration_store.jsx
parent47f92441aced1e2dd6e85fc18f27330d88e07593 (diff)
downloadchat-faf944f47a9bc84365a7ddd949fc7e7b1ac2c057.tar.gz
chat-faf944f47a9bc84365a7ddd949fc7e7b1ac2c057.tar.bz2
chat-faf944f47a9bc84365a7ddd949fc7e7b1ac2c057.zip
Displayed proper token on integration creation confirmation (#3991)
Diffstat (limited to 'webapp/stores/integration_store.jsx')
-rw-r--r--webapp/stores/integration_store.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/stores/integration_store.jsx b/webapp/stores/integration_store.jsx
index a23b9d206..33680452b 100644
--- a/webapp/stores/integration_store.jsx
+++ b/webapp/stores/integration_store.jsx
@@ -73,6 +73,10 @@ class IntegrationStore extends EventEmitter {
return this.outgoingWebhooks.get(teamId) || [];
}
+ getOutgoingWebhook(teamId, id) {
+ return this.getOutgoingWebhooks(teamId).filter((outgoingWebhook) => outgoingWebhook.id === id)[0];
+ }
+
setOutgoingWebhooks(teamId, outgoingWebhooks) {
this.outgoingWebhooks.set(teamId, outgoingWebhooks);
}
@@ -116,6 +120,10 @@ class IntegrationStore extends EventEmitter {
return this.commands.get(teamId) || [];
}
+ getCommand(teamId, id) {
+ return this.getCommands(teamId).filter((command) => command.id === id)[0];
+ }
+
setCommands(teamId, commands) {
this.commands.set(teamId, commands);
}