projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-base: force menu to regenerate after uci change
[project/luci.git]
/
modules
/
luci-base
/
htdocs
/
luci-static
/
resources
/
ui.js
diff --git
a/modules/luci-base/htdocs/luci-static/resources/ui.js
b/modules/luci-base/htdocs/luci-static/resources/ui.js
index afb590d8f8a50048602b7c731dc0f30a13b7f65e..b17fdc45fe1ed720c222321800b435939839c71d 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/ui.js
@@
-3478,6
+3478,10
@@
var UITable = baseclass.extend(/** @lends LuCI.ui.table.prototype */ {
}
});
+// Because the menu can depend on uci values, we need to flush the cache
+// after uci mutations.
+document.addEventListener('uci-applied', () => UIMenu.flushCache());
+
/**
* @class ui
* @memberof LuCI