mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 12:19:58 +01:00
fix UI functions (#330)
* fix UI functions Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * Update package.json
This commit is contained in:
committed by
Jeffrey Warren
parent
b707592588
commit
cce65141d2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user