]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #1091: add backup config button to storage contentview
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 30 Aug 2016 12:18:46 +0000 (14:18 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 5 Sep 2016 09:20:56 +0000 (11:20 +0200)
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@proxmox.com>
www/manager6/storage/ContentView.js

index f551e7e0fa3fe36b73a49af78cb0173b740e8ebe..3180fae40e143e4d73628879ea1e71580580a7d6 100644 (file)
@@ -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') + ':', ' ',
                {