Onelinerz updates:

* Uses standard `itemFormat`
* Uses format of {userName} vs {username} (case)
* Has preview implemented as %TL2
This commit is contained in:
Bryan Ashby 2018-07-09 20:27:09 -06:00
parent 2f22d91bcf
commit 5c826abd5b
4 changed files with 77 additions and 93 deletions

View file

@ -319,7 +319,8 @@ exports.MenuModule = class MenuModule extends PluginModule {
}
prepViewController(name, formId, mciMap, cb) {
if(_.isUndefined(this.viewControllers[name])) {
const needsCreated = _.isUndefined(this.viewControllers[name]);
if(needsCreated) {
const vcOpts = {
client : this.client,
formId : formId,
@ -334,13 +335,13 @@ exports.MenuModule = class MenuModule extends PluginModule {
};
return vc.loadFromMenuConfig(loadOpts, err => {
return cb(err, vc);
return cb(err, vc, true);
});
}
this.viewControllers[name].setFocus(true);
return cb(null, this.viewControllers[name]);
return cb(null, this.viewControllers[name], false);
}
prepViewControllerWithArt(name, formId, options, cb) {