summaryrefslogtreecommitdiffstats
path: root/webapp/actions/oauth_actions.jsx
diff options
context:
space:
mode:
authorn1aba <n1aba.github@gmail.com>2017-08-18 08:42:10 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-08-18 09:42:10 -0400
commitf40f41ed536edb76c9873c0cdd5dc8685b0f950f (patch)
treeb53f73c702c4e40cb9a5140b8cd3e5f2da9aaf46 /webapp/actions/oauth_actions.jsx
parent9097289c2ce2b719a5aa0f9d567594f2b6a7e30b (diff)
downloadchat-f40f41ed536edb76c9873c0cdd5dc8685b0f950f.tar.gz
chat-f40f41ed536edb76c9873c0cdd5dc8685b0f950f.tar.bz2
chat-f40f41ed536edb76c9873c0cdd5dc8685b0f950f.zip
PLT-6443 Migrate add_oauth_app.jsx to be pure and use Redux (#7232)
* Migrate add_oauth_app.jsx to be pure and use Redux, add tests * Remove unused flux code for OAuthApps
Diffstat (limited to 'webapp/actions/oauth_actions.jsx')
-rw-r--r--webapp/actions/oauth_actions.jsx23
1 files changed, 0 insertions, 23 deletions
diff --git a/webapp/actions/oauth_actions.jsx b/webapp/actions/oauth_actions.jsx
index 03508efc1..54823a324 100644
--- a/webapp/actions/oauth_actions.jsx
+++ b/webapp/actions/oauth_actions.jsx
@@ -7,16 +7,6 @@ const getState = store.getState;
import * as IntegrationActions from 'mattermost-redux/actions/integrations';
-export function listOAuthApps(complete) {
- IntegrationActions.getOAuthApps(0, 10000)(dispatch, getState).then(
- (data) => {
- if (complete) {
- complete(data);
- }
- }
- );
-}
-
export function deleteOAuthApp(id, success, error) {
IntegrationActions.deleteOAuthApp(id)(dispatch, getState).then(
(data) => {
@@ -29,16 +19,3 @@ export function deleteOAuthApp(id, success, error) {
}
);
}
-
-export function registerOAuthApp(app, success, error) {
- IntegrationActions.addOAuthApp(app)(dispatch, getState).then(
- (data) => {
- if (data && success) {
- success(data);
- } else if (data == null && error) {
- const serverError = getState().requests.integrations.addOAuthApp.error;
- error({id: serverError.server_error_id, ...serverError});
- }
- }
- );
-}