summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-09-08 10:27:49 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-09-08 10:27:49 -0300
commiteb8373aa80905fc57173da03ed5b2bd972c83d53 (patch)
treed543342c710b633fe75313ece472314202e7bc44 /webapp/stores
parenta5ebbcfdb4f151de204b6be276c5f07175ceb82a (diff)
parentb2b2d141a9c4b423e6920930b726becd1e46436c (diff)
downloadchat-eb8373aa80905fc57173da03ed5b2bd972c83d53.tar.gz
chat-eb8373aa80905fc57173da03ed5b2bd972c83d53.tar.bz2
chat-eb8373aa80905fc57173da03ed5b2bd972c83d53.zip
Merge branch 'release-3.4' RC4
Diffstat (limited to 'webapp/stores')
-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);
}