Support interactive customer transfers for enrolled devices
Rust development slice / linux (push) Failing after 8s

This commit is contained in:
2026-11-18 21:35:28 +01:00
parent db6325131a
commit 5253a9f596
24 changed files with 1715 additions and 39 deletions
+7
View File
@@ -17,6 +17,7 @@ import { allowed } from './safety';
import { CatalogCheckNotice } from './catalog-check';
import { devicePlatform } from './script-catalog';
import { DeviceInventoryPanels, systemDetails } from './device-inventory';
import { DeviceCustomerTransfer } from './device-customer-transfer';
import { ErrorBox, errorText, useResource } from './resource';
import { NavIcon, orderDetailRoute } from './navigation';
import { orderTitle, Status } from './order-presentation';
@@ -146,6 +147,7 @@ function DeviceDetail({
asset,
agent,
auth,
customers,
back,
openOperation,
changed
@@ -154,6 +156,7 @@ function DeviceDetail({
asset: string;
agent: string;
auth: Session;
customers: Tenant[];
back: () => void;
openOperation: (id: string, jobId: string) => void;
changed: (notice?: string) => void;
@@ -277,6 +280,9 @@ function DeviceDetail({
<details open={managing} onToggle={e => setManaging(e.currentTarget.open)}>
<summary>Gerät verwalten</summary>
<ErrorBox error={error} />
<DeviceCustomerTransfer auth={scoped} customer={customer} asset={asset} agent={agent}
customers={customers} active={d.lifecycle === 'current'}
supported={Array.isArray(d.capabilities) && d.capabilities.includes('device.customer_transfer/1')} />
{['archived', 'current'].includes(String(d.lifecycle)) && (
<button
disabled={busy}
@@ -437,6 +443,7 @@ export function Devices({
key={detailPath}
{...target}
auth={auth}
customers={customers}
back={back}
openOperation={(id, jobId) => onOperation(target.customer, id, jobId)}
changed={(notice) => {