fix UI functions (#330)

* fix UI functions

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>

* Update package.json
This commit is contained in:
Varun Gupta
2018-09-08 20:43:25 +05:30
committed by Jeffrey Warren
parent b707592588
commit cce65141d2
4 changed files with 10 additions and 8 deletions

View File

@@ -41,10 +41,11 @@ function InsertStep(ref, image, index, name, o) {
ref.addSteps(step['name'], step['options']);
}
}
var mod = ref.modules[name][0](o, UI);
if (!mod.isMeta) {
if (!ref.modules[name][1].length) {
UI.onSetup(o.step);
ref.images[image].steps.splice(index, 0, mod);
ref.images[image].steps.splice(index, 0, ref.modules[name][0](o, UI));
} else {
ref.modules[name][0](o, UI);
}
return true;