Commit 7235c46a authored by Wolfgang Link's avatar Wolfgang Link Committed by Dietmar Maurer

Add possibillity to distinguish container and vm on RBD Storage.

this is necessary because we use image files for both.
parent 8fde7805
......@@ -18,7 +18,7 @@ Ext.define('PVE.lxc.CreateWizard', {
var storagesel = Ext.create('PVE.form.StorageSelector', {
name: 'storage',
fieldLabel: gettext('Storage'),
storageContent: 'images,rootdir',
storageContent: 'rootdir',
autoSelect: true,
allowBlank: false
});
......
......@@ -65,6 +65,15 @@ Ext.define('PVE.storage.RBDInputPanel', {
checked: true,
uncheckedValue: 0,
fieldLabel: gettext('Enable')
},
{
xtype: 'pveContentTypeSelector',
cts: ['images', 'rootdir'],
fieldLabel: gettext('Content'),
name: 'content',
value: ['images', 'rootdir'],
multiSelect: true,
allowBlank: false
}
];
......@@ -117,6 +126,11 @@ Ext.define('PVE.storage.RBDEdit', {
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(',');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment