luci-app-opkg: flush menu cache after opkg actions
authorBaptiste Jonglez <git@bitsofnetworks.org>
Sun, 30 Aug 2020 12:22:54 +0000 (14:22 +0200)
committerPaul Spooren <mail@aparcar.org>
Thu, 3 Sep 2020 21:03:01 +0000 (11:03 -1000)
This is a partial backport of dc57e4bc6c83d6c869c318256057e3636bfc5d66

Fixes: #4077
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js

index c7cb55fc47fb7afd1dd11f043b69083c939a7fc3..8e33d563794fd35ca452187cb03f7fefb307d1b8 100644 (file)
@@ -775,6 +775,9 @@ function handleOpkg(ev)
                                E('div', {
                                        'class': 'btn',
                                        'click': L.bind(function(res) {
+                                               if (L.ui.menu && L.ui.menu.flushCache)
+                                                       L.ui.menu.flushCache();
+
                                                L.hideModal();
                                                updateLists();