Revision ee7002f8
Added by matan about 7 years ago
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
Fixes #18591 - powerStatus in redux