diff options
Diffstat (limited to 'webapp/actions')
-rw-r--r-- | webapp/actions/admin_actions.jsx | 14 |
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) => { |