Skip to content
Commit 005c09a2 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-app-sqm: only reload view once sqm enable/start completed

Chain the exec calls to enable and start the SQM service and only reload
the view once these operations are complete and return the entire promise
chain from the handler function to ensure that the busy indicator remains
active throughout the entire duration of the operation.

Also replace exec_direct() with exec() as there is no need to bypass ubus
for the init script calls.

Fixes: e76d9cc7

 ("luci-app-sqm: fix JS error if service is disabled")
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 23c211f6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment