feat(persoenliche-ausruestung): show catalog category, remove size/date columns, make zustand admin-configurable

This commit is contained in:
Matthias Hochmeister
2026-04-16 08:19:38 +02:00
parent dac0b79b3b
commit 058ee721e8
14 changed files with 282 additions and 96 deletions

View File

@@ -3,6 +3,7 @@ import type {
PersoenlicheAusruestung,
CreatePersoenlicheAusruestungPayload,
UpdatePersoenlicheAusruestungPayload,
ZustandOption,
} from '../types/personalEquipment.types';
async function unwrap<T>(
@@ -61,4 +62,12 @@ export const personalEquipmentApi = {
async delete(id: string): Promise<void> {
await api.delete(`/api/persoenliche-ausruestung/${id}`);
},
async getZustandOptions(): Promise<ZustandOption[]> {
return unwrap(api.get('/api/persoenliche-ausruestung/zustand-options'));
},
async updateZustandOptions(options: ZustandOption[]): Promise<ZustandOption[]> {
return unwrap(api.put('/api/persoenliche-ausruestung/zustand-options', { options }));
},
};