From 0d0ab01a64f25d15325d3c98a7df252085382f1d Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Sun, 30 Aug 2020 14:22:54 +0200 Subject: [PATCH] luci-app-opkg: flush menu cache after opkg actions This is a partial backport of dc57e4bc6c83d6c869c318256057e3636bfc5d66 Fixes: #4077 Signed-off-by: Baptiste Jonglez --- .../luci-app-opkg/htdocs/luci-static/resources/view/opkg.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js index c7cb55fc47..8e33d56379 100644 --- a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js +++ b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js @@ -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(); -- 2.30.2