summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorBrian Olecki <bolecki019@gmail.com>2016-11-15 10:43:16 -0500
committerenahum <nahumhbl@gmail.com>2016-11-15 12:43:16 -0300
commit6297922ab9561dbf774ab5d51619abfc4a411e40 (patch)
tree84bbced4d8282f5e8af957164d6e92ae50238011 /webapp/stores
parent1f241af48a9554b6865d1ac79b4261341ab9b3f3 (diff)
downloadchat-6297922ab9561dbf774ab5d51619abfc4a411e40.tar.gz
chat-6297922ab9561dbf774ab5d51619abfc4a411e40.tar.bz2
chat-6297922ab9561dbf774ab5d51619abfc4a411e40.zip
Add support for editing slash commands (#4335)
Diffstat (limited to 'webapp/stores')
-rw-r--r--webapp/stores/integration_store.jsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/webapp/stores/integration_store.jsx b/webapp/stores/integration_store.jsx
index 33680452b..ae818b443 100644
--- a/webapp/stores/integration_store.jsx
+++ b/webapp/stores/integration_store.jsx
@@ -137,6 +137,15 @@ class IntegrationStore extends EventEmitter {
this.setCommands(teamId, commands);
}
+ editCommand(command) {
+ const teamId = command.team_id;
+ const commands = this.getCommands(teamId);
+
+ commands.push(command);
+
+ this.setCommands(teamId, commands);
+ }
+
updateCommand(command) {
const teamId = command.team_id;
const commands = this.getCommands(teamId);