diff --git a/src/app/config/config.component.html b/src/app/config/config.component.html index d0d2e3c..ec54bf3 100644 --- a/src/app/config/config.component.html +++ b/src/app/config/config.component.html @@ -44,6 +44,7 @@ [path]="`routes/${i}`" (routeChange)="routeUpdated(i, $event)" [route]="route" + [moduleIds]="moduleIds()" (delete)="deleteRoute(i)" > diff --git a/src/app/config/config.component.ts b/src/app/config/config.component.ts index faa10dc..477ad6d 100644 --- a/src/app/config/config.component.ts +++ b/src/app/config/config.component.ts @@ -28,6 +28,14 @@ export class ConfigComponent { modules = computed(() => this.config()?.modules ?? []); routes = computed(() => this.config()?.routes ?? []); + moduleIds = computed(() => { + const config = this.config(); + if (config !== undefined && config.modules !== undefined) { + return config.modules.map((module) => module.id!) ?? []; + } + return []; + }); + public schemaService = inject(SchemaService); private snackBar = inject(MatSnackBar); diff --git a/src/app/route/route.component.html b/src/app/route/route.component.html index 47e068d..5b4f320 100644 --- a/src/app/route/route.component.html +++ b/src/app/route/route.component.html @@ -15,12 +15,16 @@