metis-desk/modules/companies/src/web/assets/detail/ui/asset-operating-systems.tsx
David 91f1d07e97 Add tests for current operating systems and workplace asset management
- Implement `current-operating-systems-ui.test.py` to validate the functionality of current operating systems in the UI, including tests for source and states, computer changes, responsive design, error handling, and version saving.
- Create `workplace-add-asset.test.py` to test the addition of assets to workstations, covering scenarios such as conflict resolution, responsive design on mobile, error handling during asset creation, and HTTP guards for asset management.
2026-10-25 13:46:06 +01:00

15 lines
468 B
TypeScript

import { CurrentOperatingSystems } from "../../../software-installations/detail/ui/current-operating-systems";
import { useAssetSoftware } from "../../../software-installations/shared/queries/use-asset-software";
export function AssetOperatingSystems({
companyId,
assetId,
}: {
companyId: string;
assetId: string;
}) {
const software = useAssetSoftware(companyId, assetId);
return <CurrentOperatingSystems companyId={companyId} software={software} />;
}