add remove_storages parameter to the pool destruction

automatically remove the pveceph managed storages when deleting the
pool on the gui

this is ok because we cannot delete the pool anyway when we have images
on it, and recreating them when creating a pool is now trivial

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-09-05 14:59:45 +02:00 committed by Wolfgang Bumiller
parent 5947248fac
commit cb852a4dcd

View File

@ -191,6 +191,9 @@ Ext.define('PVE.node.CephPoolList', {
var win = Ext.create('PVE.window.SafeDestroy', {
url: base_url,
params: {
remove_storages: 1
},
item: { type: 'CephPool', id: rec.data.pool_name }
}).show();
win.on('destroy', function() {