luci-mod-network: disable 'Edit' button for dynamic interfaces

Otherwise they produce "Cannot read properties of null".

Tested on 23.05.2

Fixes issue #6799

Signed-off-by: Paul Donald <newtwen@gmail.com>
This commit is contained in:
Paul Donald 2023-12-31 13:11:41 +00:00
parent cbfa9ca8d6
commit 032f305678

View file

@ -537,6 +537,11 @@ return view.extend({
tdEl.lastChild.childNodes[3].disabled = true; tdEl.lastChild.childNodes[3].disabled = true;
} }
if (dynamic) {
//disable the 'Edit' button on dynamic interfaces
tdEl.lastChild.childNodes[2].disabled = true;
}
return tdEl; return tdEl;
}; };