Project

General

Profile

« Previous | Next » 

Revision a303c6bb

Added by matan over 7 years ago

fixes #18464 - Add Redux to statistics page

This is a first step to replacing Flux with Redux

View differences:

webpack/assets/javascripts/react_app/API.js
});
return $.getJSON(url);
},
getStatisticsData(url) {
this.get(url)
.success(
(rawStatistics, textStatus, jqXHR) => {
ServerActions.receivedStatistics(rawStatistics, textStatus, jqXHR);
})
.error((jqXHR, textStatus, errorThrown) => {
ServerActions.statisticsRequestError(jqXHR, textStatus, errorThrown);
});
},
getHostPowerData(url) {
this.get(url)
.success(

Also available in: Unified diff