mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 12:44:56 +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') ],
|
cephdestroymon: ['Ceph Monitor', gettext('Destroy') ],
|
||||||
cephcreateosd: ['Ceph OSD', gettext('Create') ],
|
cephcreateosd: ['Ceph OSD', gettext('Create') ],
|
||||||
cephdestroyosd: ['Ceph OSD', gettext('Destroy') ],
|
cephdestroyosd: ['Ceph OSD', gettext('Destroy') ],
|
||||||
|
cephdestroypool: ['Ceph Pool', gettext('Destroy') ],
|
||||||
imgcopy: ['', gettext('Copy data') ],
|
imgcopy: ['', gettext('Copy data') ],
|
||||||
imgdel: ['', gettext('Erase data') ],
|
imgdel: ['', gettext('Erase data') ],
|
||||||
download: ['', gettext('Download') ],
|
download: ['', gettext('Download') ],
|
||||||
|
@ -85,7 +85,7 @@ Ext.define('PVE.window.SafeDestroy', {
|
|||||||
{
|
{
|
||||||
itemId: 'confirmField',
|
itemId: 'confirmField',
|
||||||
reference: 'confirmField',
|
reference: 'confirmField',
|
||||||
xtype: 'numberfield',
|
xtype: 'textfield',
|
||||||
name: 'confirm',
|
name: 'confirm',
|
||||||
labelWidth: 300,
|
labelWidth: 300,
|
||||||
hideTrigger: true,
|
hideTrigger: true,
|
||||||
@ -124,8 +124,10 @@ Ext.define('PVE.window.SafeDestroy', {
|
|||||||
msg = PVE.Utils.format_task_description('qmdestroy', item.id);
|
msg = PVE.Utils.format_task_description('qmdestroy', item.id);
|
||||||
} else if (item.type === 'CT') {
|
} else if (item.type === 'CT') {
|
||||||
msg = PVE.Utils.format_task_description('vzdestroy', item.id);
|
msg = PVE.Utils.format_task_description('vzdestroy', item.id);
|
||||||
|
} else if (item.type === 'CephPool') {
|
||||||
|
msg = PVE.Utils.format_task_description('cephdestroypool', item.id);
|
||||||
} else {
|
} else {
|
||||||
throw "unknown VM type specified";
|
throw "unknown item type specified";
|
||||||
}
|
}
|
||||||
|
|
||||||
messageCmp.setHtml(msg);
|
messageCmp.setHtml(msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user