diff options
author | 94117nl <rttededersixtwo@gmail.com> | 2017-08-03 08:25:07 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-08-03 09:25:07 -0400 |
commit | ea095d6206ad8bb9b1b1ffbf74584669a24f1ca8 (patch) | |
tree | a18650bc5e447f1c5c2ea040857ec7a9d3c57550 /webapp/stores/integration_store.jsx | |
parent | b54d1342990253d3fe4a00c64df27cdd1bb0719b (diff) | |
download | chat-ea095d6206ad8bb9b1b1ffbf74584669a24f1ca8.tar.gz chat-ea095d6206ad8bb9b1b1ffbf74584669a24f1ca8.tar.bz2 chat-ea095d6206ad8bb9b1b1ffbf74584669a24f1ca8.zip |
GH-6452 Migrate installed_command.jsx to be pure and use Redux (#6903)
* Migrate installed_command.jsx to be pure and use Redux
* Add test for InstalledCommand component
* Fix failing test and typo
* Whoops. Revert back deleted filter
* Add filter test
* Remove commands related code from /stores/integration_store.jsx
Diffstat (limited to 'webapp/stores/integration_store.jsx')
-rw-r--r-- | webapp/stores/integration_store.jsx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/webapp/stores/integration_store.jsx b/webapp/stores/integration_store.jsx index ff01774e1..f1e86d881 100644 --- a/webapp/stores/integration_store.jsx +++ b/webapp/stores/integration_store.jsx @@ -91,36 +91,6 @@ class IntegrationStore extends EventEmitter { return store.getState().entities.integrations.outgoingHooks[id]; } - hasReceivedCommands(teamId) { - const commands = store.getState().entities.integrations.commands; - - let hasTeam = false; - Object.values(commands).forEach((command) => { - if (command.team_id === teamId) { - hasTeam = true; - } - }); - - return hasTeam; - } - - getCommands(teamId) { - const commands = store.getState().entities.integrations.commands; - - const teamCommands = []; - Object.values(commands).forEach((command) => { - if (command.team_id === teamId) { - teamCommands.push(command); - } - }); - - return teamCommands; - } - - getCommand(teamId, id) { - return store.getState().entities.integrations.commands[id]; - } - hasReceivedOAuthApps() { return Object.keys(store.getState().entities.integrations.oauthApps).length > 0; } |