luci-mod-network: fix creating new interfaces
authorJo-Philipp Wich <jo@mein.io>
Wed, 19 Jan 2022 13:34:49 +0000 (14:34 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 19 Jan 2022 13:36:46 +0000 (14:36 +0100)
Fixes: #5646
Fixes: 1c798d1a08 ("luci-base: form.js: allow nesting Grid and Table sections")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index a26d51bc5ed41a4bf828999a34340a18332db578..f8c7c6a7ff443f5acdb60e84228084be7a13c01d 100644 (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));
                                                                });
                                                        })