fix(ui): keep device details open across identity changes
This commit is contained in:
12 files changed
+324
-32
No files matched your search
@@ -339,6 +339,12 @@ export function fetchKnownDevices(): Promise<KnownDevice[]> {
|
||||
return request<KnownDevice[]>("/api/v1/control/devices");
|
||||
}
|
||||
|
||||
export function fetchKnownDevice(deviceId: string): Promise<KnownDevice> {
|
||||
return request<KnownDevice>(
|
||||
`/api/v1/control/devices/${encodeURIComponent(deviceId)}`,
|
||||
);
|
||||
}
|
||||
|
||||
export function fetchFleetDevices(opts?: {
|
||||
query?: string;
|
||||
presence?: string;
|
||||
@@ -361,6 +367,12 @@ export function fetchFleetDevices(opts?: {
|
||||
);
|
||||
}
|
||||
|
||||
export function fetchFleetDevice(deviceKey: string): Promise<FleetDevice> {
|
||||
return request<FleetDevice>(
|
||||
`/api/v1/control/fleet/devices/${encodeURIComponent(deviceKey)}`,
|
||||
);
|
||||
}
|
||||
|
||||
export function refreshFleetDevices(input?: {
|
||||
agentIds?: string[];
|
||||
timeoutMs?: number;
|
||||
|
||||
Reference in new issue
Block a user