From abec097da19a56a73270a3e9b30198c07b1210ea Mon Sep 17 00:00:00 2001
From: Florian Orben <florian.orben@gmail.com>
Date: Fri, 13 Nov 2015 03:15:33 +0100
Subject: PLT-1125: allow to toggle features in frontend

---
 web/react/utils/client.jsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'web/react/utils/client.jsx')

diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 09e962161..628e885f2 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -1320,3 +1320,16 @@ export function regenOutgoingHookToken(data, success, error) {
         }
     });
 }
+
+export function getAvailablePreReleaseFeatures(success, error) {
+    $.ajax({
+        url: '/static/config/pre_release_features.json',
+        dataType: 'json',
+        type: 'GET',
+        success,
+        error: (xhr, status, err) => {
+            var e = handleError('getAvailablePreReleaseFeatures', xhr, status, err);
+            error(e);
+        }
+    });
+}
-- 
cgit v1.2.3-1-g7c22

