luci-app-opkg: flush menu cache after opkg actions

This is a partial backport of dc57e4bc6c

Fixes: #4077

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
This commit is contained in:
Baptiste Jonglez 2020-08-30 14:22:54 +02:00 committed by Paul Spooren
parent c3a0c6045c
commit 0d0ab01a64

View 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();