mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 15:49:24 +00:00
Adapt SafeDestroy component to be able to delete Ceph Pools
This commit is contained in:
parent
a4dc8611e6
commit
2125c18a23
@ -613,6 +613,7 @@ Ext.define('PVE.Utils', { utilities: {
|
||||
cephdestroymon: ['Ceph Monitor', gettext('Destroy') ],
|
||||
cephcreateosd: ['Ceph OSD', gettext('Create') ],
|
||||
cephdestroyosd: ['Ceph OSD', gettext('Destroy') ],
|
||||
cephdestroypool: ['Ceph Pool', gettext('Destroy') ],
|
||||
imgcopy: ['', gettext('Copy data') ],
|
||||
imgdel: ['', gettext('Erase data') ],
|
||||
download: ['', gettext('Download') ],
|
||||
|
@ -85,7 +85,7 @@ Ext.define('PVE.window.SafeDestroy', {
|
||||
{
|
||||
itemId: 'confirmField',
|
||||
reference: 'confirmField',
|
||||
xtype: 'numberfield',
|
||||
xtype: 'textfield',
|
||||
name: 'confirm',
|
||||
labelWidth: 300,
|
||||
hideTrigger: true,
|
||||
@ -124,8 +124,10 @@ Ext.define('PVE.window.SafeDestroy', {
|
||||
msg = PVE.Utils.format_task_description('qmdestroy', item.id);
|
||||
} else if (item.type === 'CT') {
|
||||
msg = PVE.Utils.format_task_description('vzdestroy', item.id);
|
||||
} else if (item.type === 'CephPool') {
|
||||
msg = PVE.Utils.format_task_description('cephdestroypool', item.id);
|
||||
} else {
|
||||
throw "unknown VM type specified";
|
||||
throw "unknown item type specified";
|
||||
}
|
||||
|
||||
messageCmp.setHtml(msg);
|
||||
|
Loading…
Reference in New Issue
Block a user