ui: backups: enable editing notes for Proxmox Backup Server

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-11-24 10:09:36 +01:00 committed by Thomas Lamprecht
parent 7c5f30bcd5
commit c0b8a02bb8

View File

@ -239,16 +239,6 @@ Ext.define('PVE.grid.BackupView', {
xtype: 'proxmoxButton',
text: gettext('Edit Notes'),
disabled: true,
enableFn: function() {
let storageVal = storagesel.getValue();
let storage = storagesel
.getStore()
.findRecord('storage', storageVal, 0, false, true, true);
if (storage) {
return storage.data.type !== 'pbs';
}
return true;
},
handler: function() {
let volid = sm.getSelection()[0].data.volid;
var storage = storagesel.getValue();