[pve-devel] [PATCH manager] fix LVM Content settings
Dominik Csapak
d.csapak at proxmox.com
Mon Mar 7 13:38:38 CET 2016
when adding LVM Storage, do not overwrite user input for content
and if Storage and Container is selected
show the proper names
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager/storage/LVMEdit.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/www/manager/storage/LVMEdit.js b/www/manager/storage/LVMEdit.js
index cbb4f50..8b16f31 100644
--- a/www/manager/storage/LVMEdit.js
+++ b/www/manager/storage/LVMEdit.js
@@ -97,7 +97,6 @@ Ext.define('PVE.storage.LVMInputPanel', {
if (me.create) {
values.type = 'lvm';
- values.content = 'images';
} else {
delete values.storage;
}
@@ -257,6 +256,10 @@ Ext.define('PVE.storage.LVMEdit', {
me.load({
success: function(response, options) {
var values = response.result.data;
+ var ctypes = values.content || '';
+
+ values.content = ctypes.split(',');
+
if (values.nodes) {
values.nodes = values.nodes.split(',');
}
--
2.1.4
More information about the pve-devel
mailing list