Signed-off-by: Jo-Philipp Wich <jo@mein.io>
return Promise.resolve(this.menu);
},
return Promise.resolve(this.menu);
},
+ /**
+ * Flush the internal menu cache to force loading a new structure on the
+ * next page load.
+ */
+ flushCache: function() {
+ session.setLocalData('menu', null);
+ },
+
/**
* @param {LuCI.ui.menu.MenuNode} [node]
* The menu node to retrieve the children for. Defaults to the menu's
/**
* @param {LuCI.ui.menu.MenuNode} [node]
* The menu node to retrieve the children for. Defaults to the menu's