* Added ability to pass a "menu result" from a menu when calling prev()/prevMenu()

* Ability to fully quit newscan with X key using new menu result functionality
This commit is contained in:
Bryan Ashby 2016-08-30 21:31:24 -06:00
parent 48aa0fa606
commit 0a3a62edf3
5 changed files with 35 additions and 9 deletions

View file

@ -37,6 +37,8 @@ function NewScanModule(options) {
var self = this;
var config = this.menuConfig.config;
this.newScanFullExit = _.has(options, 'lastMenuResult.fullExit') ? options.lastMenuResult.fullExit : false;
this.currentStep = 'messageConferences';
this.currentScanAux = {};
@ -191,6 +193,12 @@ NewScanModule.prototype.restoreSavedState = function(savedState) {
NewScanModule.prototype.mciReady = function(mciData, cb) {
if(this.newScanFullExit) {
// user has canceled the entire scan @ message list view
return cb(null);
}
var self = this;
var vc = self.viewControllers.allViews = new ViewController( { client : self.client } );