summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorn1aba <n1aba.github@gmail.com>2017-08-18 14:06:32 -0500
committerChristopher Speller <crspeller@gmail.com>2017-08-18 12:06:32 -0700
commit13d76a0cb2cd08357b7667020410e4615732aabd (patch)
treeb0b6c78dfc9653932469e83c0431629a9a0d4437 /webapp/actions
parent6df51f8617cb1a17dec0c49a6764c2ba1d7968c9 (diff)
downloadchat-13d76a0cb2cd08357b7667020410e4615732aabd.tar.gz
chat-13d76a0cb2cd08357b7667020410e4615732aabd.tar.bz2
chat-13d76a0cb2cd08357b7667020410e4615732aabd.zip
PLT-6451 Migrate installed_oauth_app.jsx to be pure and use Redux (#7190)
* Migrate installed_oauth_app.jsx to be pure and use Redux, add test * Fix behavior for the error case
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/admin_actions.jsx14
1 files changed, 0 insertions, 14 deletions
diff --git a/webapp/actions/admin_actions.jsx b/webapp/actions/admin_actions.jsx
index 85184a23a..4dd0f848f 100644
--- a/webapp/actions/admin_actions.jsx
+++ b/webapp/actions/admin_actions.jsx
@@ -9,7 +9,6 @@ const getState = store.getState;
import * as AdminActions from 'mattermost-redux/actions/admin';
import * as UserActions from 'mattermost-redux/actions/users';
-import * as IntegrationActions from 'mattermost-redux/actions/integrations';
import {Client4} from 'mattermost-redux/client';
export function saveConfig(config, success, error) {
@@ -238,19 +237,6 @@ export function oauthToEmail(currentService, email, password, success, error) {
);
}
-export function regenerateOAuthAppSecret(oauthAppId, success, error) {
- IntegrationActions.regenOAuthAppSecret(oauthAppId)(dispatch, getState).then(
- (data) => {
- if (data && success) {
- success(data);
- } else if (data == null && error) {
- const serverError = getState().requests.admin.updateOAuthApp.error;
- error({id: serverError.server_error_id, ...serverError});
- }
- }
- );
-}
-
export function uploadBrandImage(brandImage, success, error) {
AdminActions.uploadBrandImage(brandImage)(dispatch, getState).then(
(data) => {