luci-app-dockerman: return true for net validate
When all other conditions pass, the function shall return true. Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
@@ -249,6 +249,7 @@ return dm2.dv.extend({
|
|||||||
let dnet = this.section.getOption('network').getUIElement(section_id).getValue();
|
let dnet = this.section.getOption('network').getUIElement(section_id).getValue();
|
||||||
const disallowed = builtInNetworks.has(dnet);
|
const disallowed = builtInNetworks.has(dnet);
|
||||||
if (disallowed) return _('Only for user-defined networks');
|
if (disallowed) return _('Only for user-defined networks');
|
||||||
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
o = s.option(form.Value, 'ipv4', _('IPv4 Address'));
|
o = s.option(form.Value, 'ipv4', _('IPv4 Address'));
|
||||||
|
|||||||
Reference in New Issue
Block a user