mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-22 14:39:00 +00:00
make route input/output a select list of module id's
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user