"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "client/src/components/Settings/Dhcp/Interfaces.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.

Interfaces.js  (AdGuardHome-0.104.1):Interfaces.js  (AdGuardHome-0.104.3)
skipping to change at line 74 skipping to change at line 74
const { const {
processingInterfaces, processingInterfaces,
interfaces, interfaces,
enabled, enabled,
} = useSelector((store) => store.dhcp, shallowEqual); } = useSelector((store) => store.dhcp, shallowEqual);
const interface_name = useSelector( const interface_name = useSelector(
(store) => store.form[FORM_NAME.DHCP_INTERFACES]?.values?.interface_name , (store) => store.form[FORM_NAME.DHCP_INTERFACES]?.values?.interface_name ,
); );
if (processingInterfaces || !interfaces) {
return null;
}
const interfaceValue = interface_name && interfaces[interface_name]; const interfaceValue = interface_name && interfaces[interface_name];
return !processingInterfaces return <div className="row dhcp__interfaces">
&& interfaces <div className="col col__dhcp">
&& <> <Field
<div className="row dhcp__interfaces"> name="interface_name"
<div className="col col__dhcp"> component={renderSelectField}
<Field className="form-control custom-select pl-4 col-md"
name="interface_name" validate={[validateRequiredValue]}
component={renderSelectField} label='dhcp_interface_select'
className="form-control custom-select pl-4 col-m >
d" <option value='' disabled={enabled}>
validate={[validateRequiredValue]} {t('dhcp_interface_select')}
label='dhcp_interface_select' </option>
> {renderInterfaces(interfaces)}
<option value='' disabled={enabled}> </Field>
{t('dhcp_interface_select')} </div>
</option> {interfaceValue
{renderInterfaces(interfaces)} && renderInterfaceValues(interfaceValue)}
</Field> </div>;
</div>
{interfaceValue
&& renderInterfaceValues(interfaceValue)}
</div>
</>;
}; };
renderInterfaceValues.propTypes = { renderInterfaceValues.propTypes = {
gateway_ip: propTypes.string.isRequired, gateway_ip: propTypes.string.isRequired,
hardware_address: propTypes.string.isRequired, hardware_address: propTypes.string.isRequired,
ip_addresses: propTypes.arrayOf(propTypes.string).isRequired, ip_addresses: propTypes.arrayOf(propTypes.string).isRequired,
}; };
export default reduxForm({ export default reduxForm({
form: FORM_NAME.DHCP_INTERFACES, form: FORM_NAME.DHCP_INTERFACES,
 End of changes. 2 change blocks. 
23 lines changed or deleted 22 lines changed or added

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