5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-03-09 08:58:28 +03:00

fix #3690: ui: enable wipe-disk feature in system disk view

Set `supportsWipeDisk` to true to enables the wipe button in the web
UI.

The entry for override_task_descriptions is copied from pve-manager.

Signed-off-by: Markus Frank <m.frank@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
This commit is contained in:
Markus Frank 2023-11-28 14:23:22 +01:00 committed by Thomas Lamprecht
parent 675d5740fc
commit e0dfdd143c
2 changed files with 2 additions and 0 deletions

View File

@ -425,6 +425,7 @@ Ext.define('PBS.Utils', {
verify: ['Datastore', gettext('Verification')],
verify_group: ['Group', gettext('Verification')],
verify_snapshot: ['Snapshot', gettext('Verification')],
wipedisk: ['Device', gettext('Wipe Disk')],
zfscreate: [gettext('ZFS Storage'), gettext('Create')],
});

View File

@ -17,6 +17,7 @@ Ext.define('PBS.StorageAndDiskPanel', {
xtype: 'pmxDiskList',
title: gettext('Disks'),
includePartitions: true,
supportsWipeDisk: true,
itemId: 'disks',
iconCls: 'fa fa-hdd-o',
},