mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-09 08:10:57 +00:00
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:
parent
7c5f30bcd5
commit
c0b8a02bb8
@ -239,16 +239,6 @@ Ext.define('PVE.grid.BackupView', {
|
|||||||
xtype: 'proxmoxButton',
|
xtype: 'proxmoxButton',
|
||||||
text: gettext('Edit Notes'),
|
text: gettext('Edit Notes'),
|
||||||
disabled: true,
|
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() {
|
handler: function() {
|
||||||
let volid = sm.getSelection()[0].data.volid;
|
let volid = sm.getSelection()[0].data.volid;
|
||||||
var storage = storagesel.getValue();
|
var storage = storagesel.getValue();
|
||||||
|
Loading…
Reference in New Issue
Block a user