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:
@ -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',
|
||||
|
@ -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',
|
||||
|
Reference in New Issue
Block a user