@if (showCreateForm()) {
}
@if (schemas$ | async; as schemas) {
@if (schemas.length === 0 && !showCreateForm) {
{{ 'kb.kv-schemas.empty' | translate }}
} @else if (schemas.length > 0) {
@for (col of config.columns; track col) {
{{ 'kb.kv-schemas.table.' + col | translate }}
}
@for (schema of schemas; track schema.id) {
{{ schema.id }}
{{ schema.description }}
@for (field of schema.fields; track field.key) {
{{ field.key }}
@if (field.required) {
*
}
}
}
}
} @else {
@for (col of config.columns; track col) {
{{ 'kb.kv-schemas.table.' + col | translate }}
}
@for (i of config.skeletonRows; track i) {
}
}