From 35df2adaf8a2c5b4fa61f58049f409ca087c0547 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 19 Jan 2022 14:34:49 +0100 Subject: [PATCH] luci-mod-network: fix creating new interfaces Fixes: #5646 Fixes: 1c798d1a08 ("luci-base: form.js: allow nesting Grid and Table sections") Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/network/interfaces.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index a26d51bc5e..f8c7c6a7ff 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -1158,6 +1158,9 @@ return view.extend({ protoclass.addDevice(device.formvalue('_new_')); m.children[0].addedSection = section_id; + + ui.hideModal(); + ui.showModal(null, E('p', { 'class': 'spinning' }, [ _('Loading data…') ])); }).then(L.bind(m.children[0].renderMoreOptionsModal, m.children[0], nameval)); }); }) -- 2.30.2