From: Paul Donald Date: Thu, 9 Jan 2025 18:11:07 +0000 (+0100) Subject: luci-app-nut: fix wrong nut_server option X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7f6c7271b2581e2261e2f9a004ae389b2c57103c;p=project%2Fluci.git luci-app-nut: fix wrong nut_server option There is no driver_path prefix in the original lua code. https://github.com/openwrt/luci/blob/f6e6b055d514595941db4a4cc11c3d9902eabefb/applications/luci-app-nut/luasrc/model/cbi/nut_server.lua#L132-L135 Currently the uci configuration file does not require this path prefix by default. Closes #7542 Signed-off-by: Tianshuai Gao Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_server.js b/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_server.js index c8f9344da5..48281d3234 100644 --- a/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_server.js +++ b/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_server.js @@ -160,7 +160,7 @@ return view.extend({ o = s.option(form.ListValue, 'driver', _('Driver'), _('If this list is empty you need to %s'.format('%s'.format(_('install drivers'))))); driver_list.forEach(driver => { - o.value(driver_path + driver); + o.value(driver); }); o.optional = false;