Add support for editing slash commands (#4335)

Этот коммит содержится в:
Brian Olecki
2016-11-15 10:43:16 -05:00
коммит произвёл enahum
родитель 1f241af48a
Коммит 6297922ab9
12 изменённых файлов: 942 добавлений и 0 удалений

Просмотреть файл

@@ -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);