mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-31 06:56:12 +02:00
* Help pages
* No results for criteria page * noHistory can be passed to gotoMenu()
This commit is contained in:
parent
f4042e6556
commit
5549ff5512
3 changed files with 42 additions and 12 deletions
|
@ -99,6 +99,7 @@ module.exports = class MenuStack {
|
|||
|
||||
if(!cb && _.isFunction(options)) {
|
||||
cb = options;
|
||||
options = {};
|
||||
}
|
||||
|
||||
const self = this;
|
||||
|
@ -134,7 +135,9 @@ module.exports = class MenuStack {
|
|||
|
||||
currentModuleInfo.instance.leave();
|
||||
|
||||
if(modInst.menuConfig.options.menuFlags.includes('noHistory')) {
|
||||
const menuFlags = (options && Array.isArray(options.menuFlags)) ? options.menuFlags : modInst.menuConfig.options.menuFlags;
|
||||
|
||||
if(menuFlags.includes('noHistory')) {
|
||||
this.pop().instance.leave(); // leave & remove current
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue