ui: add ui for prune jobs

similar to verification/sync jobs, the prune settings on the
datastore are deprecated

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2022-05-23 11:00:55 +02:00
parent 93205cbe92
commit c69884a459
6 changed files with 507 additions and 0 deletions

View File

@ -41,6 +41,10 @@ Ext.define('PBS.datastore.DataStoreList', {
type = 'verify';
}
if (type === 'prunejob') {
type = 'prune';
}
let datastore = PBS.Utils.parse_datastore_worker_id(type, task.worker_id);
if (!datastore) {
return;
@ -233,6 +237,11 @@ Ext.define('PBS.datastore.DataStores', {
itemId: 'syncjobs',
xtype: 'pbsSyncJobView',
},
{
iconCls: 'fa fa-trash-o',
itemId: 'prunejobs',
xtype: 'pbsPruneJobView',
},
{
iconCls: 'fa fa-check-circle',
itemId: 'verifyjobs',

View File

@ -74,6 +74,14 @@ Ext.define('PBS.DataStorePanel', {
datastore: '{datastore}',
},
},
{
iconCls: 'fa fa-trash-o',
itemId: 'prunejobs',
xtype: 'pbsPruneJobView',
cbind: {
datastore: '{datastore}',
},
},
{
iconCls: 'fa fa-check-circle',
itemId: 'verifyjobs',