diff options
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/async_client.jsx | 26 | ||||
-rw-r--r-- | web/react/utils/client.jsx | 14 |
2 files changed, 1 insertions, 39 deletions
diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx index 6b8e73c5a..3e23e5c33 100644 --- a/web/react/utils/async_client.jsx +++ b/web/react/utils/async_client.jsx @@ -582,28 +582,4 @@ export function getMyTeam() { dispatchError(err, 'getMyTeam'); } ); -} - -export function getConfig() { - if (isCallInProgress('getConfig')) { - return; - } - - callTracker.getConfig = utils.getTimestamp(); - client.getConfig( - function getConfigSuccess(data, textStatus, xhr) { - callTracker.getConfig = 0; - - if (data && xhr.status !== 304) { - AppDispatcher.handleServerAction({ - type: ActionTypes.RECIEVED_CONFIG, - settings: data - }); - } - }, - function getConfigFailure(err) { - callTracker.getConfig = 0; - dispatchError(err, 'getConfig'); - } - ); -} +}
\ No newline at end of file diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index ebd6640d7..902eb1642 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -987,17 +987,3 @@ export function updateValetFeature(data, success, error) { track('api', 'api_teams_update_valet_feature'); } - -export function getConfig(success, error) { - $.ajax({ - url: '/api/v1/config/get_all', - dataType: 'json', - type: 'GET', - ifModified: true, - success: success, - error: function onError(xhr, status, err) { - var e = handleError('getConfig', xhr, status, err); - error(e); - } - }); -} |