Feature: ZFS Pool-Aktionen (Scrub, Resilver, Clear Errors) + Product-Spalte fix
- Backend: neue Endpoints POST /api/pools/{name}/clear und /resilver
- Frontend: Pool ⋮-Menü mit Scrub, Resilver, Clear Errors
- Product-Spalte im Status-Tab bricht jetzt korrekt um statt abgeschnitten zu werden
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -223,6 +223,16 @@ export class ZFSManagerAPI {
|
||||
return response.data
|
||||
}
|
||||
|
||||
async clearPoolErrors(poolName: string): Promise<{ status: string }> {
|
||||
const response = await this.client.post(`/api/pools/${poolName}/clear`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
async resilverPool(poolName: string): Promise<{ status: string }> {
|
||||
const response = await this.client.post(`/api/pools/${poolName}/resilver`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
// Datasets
|
||||
async getDatasets(pool: string = "tank"): Promise<Dataset[]> {
|
||||
const response = await this.client.get("/api/datasets/", { params: { pool } })
|
||||
|
||||
Reference in New Issue
Block a user