Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
Varun Gupta
2018-08-07 00:03:37 +05:30
committed by Jeffrey Warren
parent a238fc65e1
commit 5a3b94d4ee
3 changed files with 11 additions and 9 deletions

View File

@@ -36,15 +36,16 @@ function InsertStep(ref, image, index, name, o) {
// Tell UI that a step has been set up.
o = o || {};
UI.onSetup(o.step);
ref.modules[name].expandSteps = function expandSteps(stepsArray) {
for (var step of stepsArray) {
ref.addSteps(step['name'], step['options']);
}
}
var module = ref.modules[name][0](o, UI);
if (!module.isMeta)
ref.images[image].steps.splice(index, 0, module);
var mod = ref.modules[name][0](o, UI);
if (!mod.isMeta) {
UI.onSetup(o.step);
ref.images[image].steps.splice(index, 0, mod);
}
return true;
}