From 55e145116020f53995bbb0c32ad37a68ff1e9a5a Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 29 May 2018 23:33:30 -0700 Subject: [PATCH] Slack commands and post working agagain with new flow --- app/scenes/Settings/Slack.js | 4 +- app/scenes/Settings/components/SlackButton.js | 6 +- app/scenes/SlackAuth/SlackAuth.js | 80 ------------------- app/scenes/SlackAuth/index.js | 3 - app/stores/AuthStore.js | 53 ------------ server/auth/slack.js | 37 ++++++--- 6 files changed, 27 insertions(+), 156 deletions(-) delete mode 100644 app/scenes/SlackAuth/SlackAuth.js delete mode 100644 app/scenes/SlackAuth/index.js diff --git a/app/scenes/Settings/Slack.js b/app/scenes/Settings/Slack.js index 188972bdf..99a2ce114 100644 --- a/app/scenes/Settings/Slack.js +++ b/app/scenes/Settings/Slack.js @@ -47,7 +47,7 @@ class Slack extends React.Component { ) : ( )}

@@ -83,7 +83,7 @@ class Slack extends React.Component { {collection.name} diff --git a/app/scenes/Settings/components/SlackButton.js b/app/scenes/Settings/components/SlackButton.js index 241e6ed60..6923317f1 100644 --- a/app/scenes/Settings/components/SlackButton.js +++ b/app/scenes/Settings/components/SlackButton.js @@ -17,11 +17,7 @@ type Props = { function SlackButton({ auth, state, label, scopes, redirectUri }: Props) { const handleClick = () => - (window.location.href = slackAuth( - state ? auth.saveOauthState(state) : auth.genOauthState(), - scopes, - redirectUri - )); + (window.location.href = slackAuth(state, scopes, redirectUri)); return (