"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "client/src/actions/index.js" between
AdGuardHome-0.104.1.tar.gz and AdGuardHome-0.104.3.tar.gz

About: AdGuard Home is a network-wide ads & trackers blocking DNS server. It operates as a DNS server that re-routes tracking domains to a "black hole," thus preventing your devices from connecting to those servers.

index.js  (AdGuardHome-0.104.1):index.js  (AdGuardHome-0.104.3)
skipping to change at line 376 skipping to change at line 376
} }
}; };
export const getDhcpStatusRequest = createAction('GET_DHCP_STATUS_REQUEST'); export const getDhcpStatusRequest = createAction('GET_DHCP_STATUS_REQUEST');
export const getDhcpStatusSuccess = createAction('GET_DHCP_STATUS_SUCCESS'); export const getDhcpStatusSuccess = createAction('GET_DHCP_STATUS_SUCCESS');
export const getDhcpStatusFailure = createAction('GET_DHCP_STATUS_FAILURE'); export const getDhcpStatusFailure = createAction('GET_DHCP_STATUS_FAILURE');
export const getDhcpStatus = () => async (dispatch) => { export const getDhcpStatus = () => async (dispatch) => {
dispatch(getDhcpStatusRequest()); dispatch(getDhcpStatusRequest());
try { try {
const status = await apiClient.getDhcpStatus();
const globalStatus = await apiClient.getGlobalStatus(); const globalStatus = await apiClient.getGlobalStatus();
status.dhcp_available = globalStatus.dhcp_available; if (globalStatus.dhcp_available) {
dispatch(getDhcpStatusSuccess(status)); const status = await apiClient.getDhcpStatus();
status.dhcp_available = globalStatus.dhcp_available;
dispatch(getDhcpStatusSuccess(status));
} else {
dispatch(getDhcpStatusFailure());
}
} catch (error) { } catch (error) {
dispatch(addErrorToast({ error })); dispatch(addErrorToast({ error }));
dispatch(getDhcpStatusFailure()); dispatch(getDhcpStatusFailure());
} }
}; };
export const getDhcpInterfacesRequest = createAction('GET_DHCP_INTERFACES_REQUES T'); export const getDhcpInterfacesRequest = createAction('GET_DHCP_INTERFACES_REQUES T');
export const getDhcpInterfacesSuccess = createAction('GET_DHCP_INTERFACES_SUCCES S'); export const getDhcpInterfacesSuccess = createAction('GET_DHCP_INTERFACES_SUCCES S');
export const getDhcpInterfacesFailure = createAction('GET_DHCP_INTERFACES_FAILUR E'); export const getDhcpInterfacesFailure = createAction('GET_DHCP_INTERFACES_FAILUR E');
 End of changes. 2 change blocks. 
3 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)