luci-mod-network: show stop button if interface start is pending
authorFlorian Eckert <[email protected]>
Tue, 7 Oct 2025 12:08:11 +0000 (14:08 +0200)
committerFlorian Eckert <[email protected]>
Fri, 10 Oct 2025 12:08:27 +0000 (14:08 +0200)
commitb4d5ca66e9a6f422f729215c5dbcfce4ecbab7cc
tree662e77d86bce1f567ec64bae31a6853525d43f94
parent7b6b0d01391736c1b38807a6f5a0d0fd00e98450
luci-mod-network: show stop button if interface start is pending

Currently, it is not possible to stop an interface from establishing a
connection when it is flageed as pending in the netifd. This situation
occurs when netifd tells a proto to establish a connection, but the
proto is executing a blocken binary. This situation occurs in the proto
'modemmanager' when it wants to register but cannot. The timeout is set to
'120' seconds. During this time, the establishment cannot be stopped via
LuCI because the disable button can not be clicked.

To fix this, the pending flag is also evaluated and the disable button
is displayed in this state as well.

Signed-off-by: Florian Eckert <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js