Commit 804b9203 authored by Dietmar Maurer's avatar Dietmar Maurer

filter backup files by vmtype

parent 14cd55a8
......@@ -22,12 +22,26 @@ Ext.define('PVE.grid.BackupView', {
throw "no VM type specified";
}
var filterFn;
if (vmtype === 'openvz') {
filterFn = function(item) {
return item.data.volid.match(':backup/vzdump-openvz-');
};
} else if (vmtype === 'qemu') {
filterFn = function(item) {
return item.data.volid.match(':backup/vzdump-qemu-');
};
} else {
throw "unsupported VM type '" + vmtype + "'";
}
me.store = Ext.create('Ext.data.Store', {
model: 'pve-storage-content',
sorters: {
property: 'volid',
order: 'DESC'
}
},
filters: { filterFn: filterFn }
});
var reload = Ext.Function.createBuffered(function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment