mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
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:
committed by
Andreas Schickinger
parent
cd1ff5f277
commit
643b2b0e60
@@ -1,7 +1,6 @@
|
||||
export const RemissionListType = {
|
||||
Pflicht: 'Pflichtremission',
|
||||
Abteilung: 'Abteilungsremission',
|
||||
Koerperlos: 'Körperlose Remi',
|
||||
} as const;
|
||||
|
||||
export type RemissionListTypeKey = keyof typeof RemissionListType;
|
||||
|
||||
@@ -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
|
||||
>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user