we only show that a storage can store scripts, but for now we do not allow to set or upload them via the gui
Signed-off-by: Dominik Csapak <[email protected]> --- www/manager6/Utils.js | 3 ++- www/manager6/form/ContentTypeSelector.js | 2 +- www/manager6/storage/CephFSEdit.js | 2 +- www/manager6/storage/GlusterFsEdit.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index cf9cbdc9..b7303f33 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -440,7 +440,8 @@ Ext.define('PVE.Utils', { utilities: { 'backup': gettext('VZDump backup file'), 'vztmpl': gettext('Container template'), 'iso': gettext('ISO image'), - 'rootdir': gettext('Container') + 'rootdir': gettext('Container'), + 'scripts': gettext('Scripts') }, storageSchema: { diff --git a/www/manager6/form/ContentTypeSelector.js b/www/manager6/form/ContentTypeSelector.js index 7e8d266b..6dd0f6c8 100644 --- a/www/manager6/form/ContentTypeSelector.js +++ b/www/manager6/form/ContentTypeSelector.js @@ -10,7 +10,7 @@ Ext.define('PVE.form.ContentTypeSelector', { me.comboItems = []; if (me.cts === undefined) { - me.cts = ['images', 'iso', 'vztmpl', 'backup', 'rootdir']; + me.cts = ['images', 'iso', 'vztmpl', 'backup', 'rootdir', 'scripts']; } Ext.Array.each(me.cts, function(ct) { diff --git a/www/manager6/storage/CephFSEdit.js b/www/manager6/storage/CephFSEdit.js index 864e9e81..3b4f1cd4 100644 --- a/www/manager6/storage/CephFSEdit.js +++ b/www/manager6/storage/CephFSEdit.js @@ -68,7 +68,7 @@ Ext.define('PVE.storage.CephFSInputPanel', { me.column2 = [ { xtype: 'pveContentTypeSelector', - cts: ['backup', 'iso', 'vztmpl'], + cts: ['backup', 'iso', 'vztmpl', 'scripts'], fieldLabel: gettext('Content'), name: 'content', value: 'backup', diff --git a/www/manager6/storage/GlusterFsEdit.js b/www/manager6/storage/GlusterFsEdit.js index 85454b86..14fe81fd 100644 --- a/www/manager6/storage/GlusterFsEdit.js +++ b/www/manager6/storage/GlusterFsEdit.js @@ -98,7 +98,7 @@ Ext.define('PVE.storage.GlusterFsInputPanel', { }, { xtype: 'pveContentTypeSelector', - cts: ['images', 'iso', 'backup', 'vztmpl'], + cts: ['images', 'iso', 'backup', 'vztmpl', 'scripts'], name: 'content', value: 'images', multiSelect: true, -- 2.11.0 _______________________________________________ pve-devel mailing list [email protected] https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
