Project

General

Profile

« Previous | Next » 

Revision ee7002f8

Added by matan about 7 years ago

Fixes #18591 - powerStatus in redux

View differences:

webpack/assets/javascripts/react_app/API.js
});
return $.getJSON(url);
},
getHostPowerData(url) {
this.get(url)
.success(
(rawHosts, textStatus, jqXHR) => {
ServerActions.receivedHostsPowerState(rawHosts, textStatus, jqXHR);
})
.error((jqXHR, textStatus, errorThrown) => {
ServerActions.hostsRequestError(jqXHR, textStatus, errorThrown);
});
},
getNotifications(url) {
NotificationActions.setRequestStatus(STATUS.PENDING);
$.get(url)

Also available in: Unified diff