[pve-devel] [PATCH manager v2 1/2] Adapt SafeDestroy component to be able to delete Ceph Pools
Emmanuel Kasper
e.kasper at proxmox.com
Mon Jun 12 16:18:08 CEST 2017
---
www/manager6/Utils.js | 1 +
www/manager6/window/SafeDestroy.js | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index d1ada771..25d78f7b 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -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') ],
diff --git a/www/manager6/window/SafeDestroy.js b/www/manager6/window/SafeDestroy.js
index 46fc1036..5093dbf1 100644
--- a/www/manager6/window/SafeDestroy.js
+++ b/www/manager6/window/SafeDestroy.js
@@ -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);
--
2.11.0
More information about the pve-devel
mailing list