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:
parent
cbfa9ca8d6
commit
032f305678
1 changed files with 5 additions and 0 deletions
|
@ -537,6 +537,11 @@ return view.extend({
|
|||
tdEl.lastChild.childNodes[3].disabled = true;
|
||||
}
|
||||
|
||||
if (dynamic) {
|
||||
//disable the 'Edit' button on dynamic interfaces
|
||||
tdEl.lastChild.childNodes[2].disabled = true;
|
||||
}
|
||||
|
||||
return tdEl;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue