Merged PR 1923: feat(remission): remove Koerperlos remission list type

feat(remission): remove Koerperlos remission list type

Remove the 'Körperlose Remi' option from remission list types as it's no longer needed. This simplifies the remission type selection by:

- Removing Koerperlos from RemissionListType constant
- Eliminating disabled state logic in dropdown component
- Removing special handling in changeRemissionType method
- Fixing label text from 'Abteilungen' to 'Abteilung' for consistency

The dropdown now only shows the two active remission types: Pflichtremission and Abteilungsremission.

Ref: #5303
This commit is contained in:
Nino Righi
2025-09-01 14:59:57 +00:00
committed by Andreas Schickinger
parent cd1ff5f277
commit 643b2b0e60
3 changed files with 2 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
export const RemissionListType = {
Pflicht: 'Pflichtremission',
Abteilung: 'Abteilungsremission',
Koerperlos: 'Körperlose Remi',
} as const;
export type RemissionListTypeKey = keyof typeof RemissionListType;

View File

@@ -12,7 +12,6 @@
@for (kv of remissionListTypes; track kv.key) {
<ui-dropdown-option
[attr.data-what]="`remission-list-option-${kv.value}`"
[disabled]="kv.value === RemissionListCategory.Koerperlos"
[value]="kv.value"
>{{ kv.value }}</ui-dropdown-option
>

View File

@@ -35,11 +35,7 @@ export class RemissionListSelectComponent {
selectedRemissionListType = injectRemissionListType();
async changeRemissionType(remissionTypeValue: RemissionListType | undefined) {
if (
!remissionTypeValue ||
remissionTypeValue === RemissionListType.Koerperlos
)
return;
if (!remissionTypeValue) return;
await this.router.navigate(
[remissionListTypeRouteMapping[remissionTypeValue]],
@@ -57,7 +53,7 @@ export class RemissionListSelectComponent {
}
if (type === RemissionListType.Abteilung) {
return 'Abteilungen';
return 'Abteilung';
}
return;