Skip to content

Commit

Permalink
luci-mod-network: disable 'Edit' button for dynamic interfaces
Browse files Browse the repository at this point in the history
Otherwise they produce "Cannot read properties of null".

Tested on 23.05.2

Fixes issue openwrt#6799

Signed-off-by: Paul Donald <[email protected]>
  • Loading branch information
systemcrash committed Dec 31, 2023
1 parent cbfa9ca commit 032f305
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 032f305

Please sign in to comment.