web/admin: show stage binding form when creating stage in bound list

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-12-25 15:09:22 +01:00
parent f5738804ff
commit dbaf03430e
16 changed files with 834 additions and 152 deletions

View File

@ -49,6 +49,11 @@ export class InitialPolicyWizardPage extends WizardPage {
id=${`${type.component}-${type.modelName}`}
@change=${() => {
const idx = this.host.steps.indexOf("initial") + 1;
// Exclude all current steps starting with type-,
// this happens when the user selects a type and then goes back
this.host.steps = this.host.steps.filter(
(step) => !step.startsWith("type-"),
);
this.host.steps.splice(
idx,
0,