ui: tape restore: avoid component/value lookup, use parameters

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-21 15:44:16 +02:00
parent 5128ae48a0
commit 8848f1d487

View File

@ -163,10 +163,8 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
});
},
updateDatastores: function() {
updateDatastores: function(grid, values) {
let me = this;
let grid = me.lookup('snapshotGrid');
let values = grid.getValue();
if (values === 'all') {
values = [];
}