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/actions/ServerActions.js
import NotificationActions from './NotificationActions';
export default {
receivedStatistics(rawStatistics, textStatus, jqXHR) {
AppDispatcher.dispatch({
actionType: ACTIONS.RECEIVED_STATISTICS,
rawStatistics
});
},
statisticsRequestError(jqXHR, textStatus, errorThrown) {
AppDispatcher.dispatch({
actionType: ACTIONS.STATISTICS_REQUEST_ERROR, info: {
jqXHR: jqXHR,
textStatus: textStatus,
errorThrown: errorThrown
}
});
},
receivedHostsPowerState(response, textStatus, jqXHR) {
AppDispatcher.dispatch({
actionType: ACTIONS.RECEIVED_HOSTS_POWER_STATE,

Also available in: Unified diff