summaryrefslogtreecommitdiff
path: root/web/src/actions/info.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/actions/info.js')
-rw-r--r--web/src/actions/info.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/src/actions/info.js b/web/src/actions/info.js
index a28c62651..9024ab550 100644
--- a/web/src/actions/info.js
+++ b/web/src/actions/info.js
@@ -25,6 +25,7 @@ export const fetchInfoRequest = () => ({
export const fetchInfoSuccess = json => ({
type: INFO_FETCH_SUCCESS,
tenant: json.info.tenant,
+ capabilities: json.info.capabilities,
})
const fetchInfoFail = error => ({
@@ -35,7 +36,9 @@ const fetchInfoFail = error => ({
const fetchInfo = () => dispatch => {
dispatch(fetchInfoRequest())
return API.fetchInfo()
- .then(response => dispatch(fetchInfoSuccess(response.data)))
+ .then(response => {
+ dispatch(fetchInfoSuccess(response.data))
+ })
.catch(error => {
dispatch(fetchInfoFail(error))
setTimeout(() => {dispatch(fetchInfo())}, 5000)