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 <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2022-01-19 14:34:49 +01:00
parent 2008ccd699
commit 35df2adaf8

View file

@ -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));
});
})