mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
ui: use new eject disk endpoint
This commit is contained in:
committed by
Aiden McClelland
parent
23077c6c6b
commit
e2a1ac7033
@@ -63,7 +63,7 @@ export class LiveApiService extends ApiService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async ejectExternalDisk (logicalName: string): Promise<Unit> {
|
async ejectExternalDisk (logicalName: string): Promise<Unit> {
|
||||||
return this.authRequest({ method: Method.DELETE, url: `/disks/${logicalName}` })
|
return this.authRequest({ method: Method.DELETE, url: `/disks?logicalName=${encodeURI(logicalName)}` })
|
||||||
}
|
}
|
||||||
|
|
||||||
async updateAgent (version: string): Promise<Unit> {
|
async updateAgent (version: string): Promise<Unit> {
|
||||||
|
|||||||
Reference in New Issue
Block a user