fix: Pop Component Stack back actions (#22)

Fixes https://github.com/The-Low-Code-Foundation/Code-Crusher/issues/3
This commit is contained in:
Eric Tuvesson
2024-05-20 22:49:26 +02:00
committed by GitHub
parent 4237b9290d
commit f8a2170f5d

View File

@@ -64,19 +64,21 @@ const NavigateBack = {
return; return;
} }
if (name.startsWith('result-')) if (name.startsWith('result-')) {
return this.registerInput(name, { return this.registerInput(name, {
set: this.setResultValue.bind(this, name.substring('result-'.length)) set: this.setResultValue.bind(this, name.substring('result-'.length))
}); });
}
if (name.startsWith('backAction-')) if (name.startsWith('backAction-')) {
return this.registerInput(name, { return this.registerInput(name, {
set: _createSignal({ set: (value) => {
valueChangedToTrue: this.backActionTriggered.bind(this, name) value && this.backActionTriggered(name)
}) }
}); });
} }
} }
}
}; };
function setup(context, graphModel) { function setup(context, graphModel) {