From 6297922ab9561dbf774ab5d51619abfc4a411e40 Mon Sep 17 00:00:00 2001 From: Brian Olecki Date: Tue, 15 Nov 2016 10:43:16 -0500 Subject: Add support for editing slash commands (#4335) --- webapp/stores/integration_store.jsx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'webapp/stores') 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); -- cgit v1.2.3-1-g7c22