]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
fix #2933: correct behaviour of initgpt button
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 14 Aug 2020 08:33:52 +0000 (10:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Aug 2020 15:32:03 +0000 (17:32 +0200)
commitabd4706afe85f7b16b618a4d4d3d0aff5389aca5
tree5878869ab528badaf6c885fa5d509bcb686fc291
parentaa941c21aa2963455eb4a7f5ed9f52680cd09463
fix #2933: correct behaviour of initgpt button

fixes 4 issues:
* use correct /api2/ext url to get the 'success' parameter
* check 'used' property for 'unused' (pbs vs pve)
* use 'name' instead of 'devpath' for id
  (name always contains the correct id for the product,
  e.g. /dev/sdd for pve and sdd for pbs)
* add a reload in taskDone to reload the list of disks when the inti is done

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/grid/DiskList.js