From ea095d6206ad8bb9b1b1ffbf74584669a24f1ca8 Mon Sep 17 00:00:00 2001 From: 94117nl Date: Thu, 3 Aug 2017 08:25:07 -0500 Subject: 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 --- webapp/stores/integration_store.jsx | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'webapp/stores') 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; } -- cgit v1.2.3-1-g7c22