config/CertificateView.js \
config/NodeOptionView.js \
config/MetricServerView.js \
+ config/PruneAndGC.js \
window/ACLEdit.js \
window/BackupGroupChangeOwner.js \
window/CreateDirectory.js \
Subscription.js \
datastore/Summary.js \
datastore/Notes.js \
- datastore/PruneAndGC.js \
datastore/Prune.js \
datastore/Content.js \
datastore/OptionView.js \
--- /dev/null
+Ext.define('PBS.config.PruneAndGC', {
+ extend: 'Ext.panel.Panel',
+ alias: 'widget.pbsPruneAndGC',
+ title: gettext('Prune & GC Jobs'),
+
+ mixins: ['Proxmox.Mixin.CBind'],
+
+ layout: {
+ type: 'vbox',
+ align: 'stretch',
+ multi: true,
+ },
+ defaults: {
+ collapsible: false,
+ margin: '7 10 3 10',
+ },
+ items: [
+ {
+ xtype: 'pbsGCJobView',
+ itemId: 'gcjobs',
+ nodename: 'localhost',
+ cbind: {
+ datastore: '{datastore}',
+ },
+ },
+ {
+ xtype: 'pbsPruneJobView',
+ nodename: 'localhost',
+ itemId: 'prunejobs',
+ cbind: {
+ datastore: '{datastore}',
+ },
+ },
+ ],
+ initComponent: function() {
+ let me = this;
+
+ let subPanelIds = me.items.map(el => el.itemId);
+
+ me.callParent();
+
+ for (const itemId of subPanelIds) {
+ let component = me.getComponent(itemId);
+ component.relayEvents(me, ['activate', 'deactivate', 'destroy']);
+ }
+ },
+
+ cbindData: function(initalConfig) {
+ let me = this;
+ me.datastore = initalConfig.datastore ? initalConfig.datastore : undefined;
+ },
+});
{
iconCls: 'fa fa-trash-o',
itemId: 'prunegc',
- xtype: 'pbsDatastorePruneAndGC',
+ xtype: 'pbsPruneAndGC',
},
{
iconCls: 'fa fa-check-circle',
},
},
{
- xtype: 'pbsDatastorePruneAndGC',
+ xtype: 'pbsPruneAndGC',
itemId: 'prunegc',
iconCls: 'fa fa-trash-o',
cbind: {
+++ /dev/null
-Ext.define('PBS.Datastore.PruneAndGC', {
- extend: 'Ext.panel.Panel',
- alias: 'widget.pbsDatastorePruneAndGC',
- title: gettext('Prune & GC Jobs'),
-
- mixins: ['Proxmox.Mixin.CBind'],
-
- layout: {
- type: 'vbox',
- align: 'stretch',
- multi: true,
- },
- defaults: {
- collapsible: false,
- margin: '7 10 3 10',
- },
- items: [
- {
- xtype: 'pbsGCJobView',
- itemId: 'gcjobs',
- nodename: 'localhost',
- cbind: {
- datastore: '{datastore}',
- },
- },
- {
- xtype: 'pbsPruneJobView',
- nodename: 'localhost',
- itemId: 'prunejobs',
- cbind: {
- datastore: '{datastore}',
- },
- },
- ],
- initComponent: function() {
- let me = this;
-
- let subPanelIds = me.items.map(el => el.itemId);
-
- me.callParent();
-
- for (const itemId of subPanelIds) {
- let component = me.getComponent(itemId);
- component.relayEvents(me, ['activate', 'deactivate', 'destroy']);
- }
- },
-
- cbindData: function(initalConfig) {
- let me = this;
- me.datastore = initalConfig.datastore ? initalConfig.datastore : undefined;
- },
-});