]>
git.proxmox.com Git - proxmox-backup.git/blob - www/datastore/PruneAndGC.js
33ca010872ecf0d92213aa11223fb6310e3af8f2
1 Ext
.define('PBS.Datastore.PruneAndGC', {
2 extend
: 'Ext.panel.Panel',
3 alias
: 'widget.pbsDatastorePruneAndGC',
4 title
: gettext('Prune & GC Jobs'),
6 mixins
: ['Proxmox.Mixin.CBind'],
19 xtype
: 'pbsGCJobView',
21 nodename
: 'localhost',
23 datastore
: '{datastore}',
27 xtype
: 'pbsPruneJobView',
28 nodename
: 'localhost',
31 datastore
: '{datastore}',
35 initComponent: function() {
38 let subPanelIds
= me
.items
.map(el
=> el
.itemId
);
42 for (const itemId
of subPanelIds
) {
43 let component
= me
.getComponent(itemId
);
44 component
.relayEvents(me
, ['activate', 'deactivate', 'destroy']);
48 cbindData: function(initalConfig
) {
50 me
.datastore
= initalConfig
.datastore
? initalConfig
.datastore
: undefined;