[pve-devel] [PATCH manager 2/2] fix #1091: add backup config button to storage contentview

Dominik Csapak d.csapak at proxmox.com
Tue Aug 30 14:18:46 CEST 2016


this adds a show config button to the storage contentview
so that you can show the backup configuration from there

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/storage/ContentView.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index f551e7e..3180fae 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -459,6 +459,23 @@ Ext.define('PVE.storage.ContentView', {
 		},
 		templateButton,
 		uploadButton,
+		{
+		    xtype: 'pveButton',
+		    text: gettext('Show Configuration'),
+		    disabled: true,
+		    selModel: sm,
+		    enableFn: function(rec) {
+			return rec && rec.data.content === 'backup';
+		    },
+		    handler: function(b,e,rec) {
+			var win = Ext.create('PVE.window.BackupConfig', {
+			    volume: rec.data.volid,
+			    pveSelNode: me.pveSelNode
+			});
+
+			win.show();
+		    }
+		},
 		'->',
 		gettext('Search') + ':', ' ',
 		{
-- 
2.1.4





More information about the pve-devel mailing list