diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-08-13 13:01:21 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-08-13 13:01:21 -0400 |
commit | ca919538cc402ed90ce42ffc3ef98994bb1081f4 (patch) | |
tree | 4ebc16d9c3092fbcf25dba68153868f8d277b0e0 /web/react/utils/client.jsx | |
parent | d35065d6fd8237468ee3aa63bfba3b2aa29bc4af (diff) | |
download | chat-ca919538cc402ed90ce42ffc3ef98994bb1081f4.tar.gz chat-ca919538cc402ed90ce42ffc3ef98994bb1081f4.tar.bz2 chat-ca919538cc402ed90ce42ffc3ef98994bb1081f4.zip |
Added ConfigStore that is populated from the server
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r-- | web/react/utils/client.jsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index 6ae25c66d..250e3edbd 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -850,6 +850,21 @@ module.exports.updateValetFeature = function(data, success, error) { module.exports.track('api', 'api_teams_update_valet_feature'); }; +function getConfig(success, error) { + $.ajax({ + url: '/api/v1/config/get_all', + dataType: 'json', + type: 'GET', + ifModified: true, + success: success, + error: function(xhr, status, err) { + var e = handleError('getConfig', xhr, status, err); + error(e); + } + }); +}; +module.exports.getConfig = getConfig; + module.exports.isEmailEnabledSynchronous = function() { var enabled = false; |