[pve-devel] [PATCH manager v3 1/2] add snippets content type to the gui

Dominik Csapak d.csapak at proxmox.com
Tue Jan 29 16:28:45 CET 2019


we only show that a storage can store snippets, but for now
we do not allow to set or upload them via the gui

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v2:
* change scripts to snippets
 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 d13ad785..c96987e8 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -443,7 +443,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'),
+	'snippets': gettext('Snippets')
     },
 
     storageSchema: {
diff --git a/www/manager6/form/ContentTypeSelector.js b/www/manager6/form/ContentTypeSelector.js
index 7e8d266b..be38a186 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', 'snippets'];
 	}
 
 	Ext.Array.each(me.cts, function(ct) {
diff --git a/www/manager6/storage/CephFSEdit.js b/www/manager6/storage/CephFSEdit.js
index 864e9e81..13e49b06 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', 'snippets'],
 		fieldLabel: gettext('Content'),
 		name: 'content',
 		value: 'backup',
diff --git a/www/manager6/storage/GlusterFsEdit.js b/www/manager6/storage/GlusterFsEdit.js
index 85454b86..070efe11 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', 'snippets'],
 		name: 'content',
 		value: 'images',
 		multiSelect: true,
-- 
2.11.0





More information about the pve-devel mailing list