ui: move prune and gc widget to config

* move datastore/PruneAndGC to config/PruneAndGC
* renaming the widgets to PBS.config.PruneAndGC

Signed-off-by: Stefan Lendl <s.lendl@proxmox.com>
Tested-by: Gabriel Goller <g.goller@proxmox.com>
Reviewd-by: Gabriel Goller <g.goller@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Stefan Lendl 2024-04-18 12:16:59 +02:00 committed by Fabian Grünbichler
parent db3fd2132d
commit 8e07e44ab2
4 changed files with 5 additions and 5 deletions

View File

@ -68,6 +68,7 @@ JSSRC= \
config/CertificateView.js \
config/NodeOptionView.js \
config/MetricServerView.js \
config/PruneAndGC.js \
window/ACLEdit.js \
window/BackupGroupChangeOwner.js \
window/CreateDirectory.js \
@ -106,7 +107,6 @@ JSSRC= \
Subscription.js \
datastore/Summary.js \
datastore/Notes.js \
datastore/PruneAndGC.js \
datastore/Prune.js \
datastore/Content.js \
datastore/OptionView.js \

View File

@ -1,6 +1,6 @@
Ext.define('PBS.Datastore.PruneAndGC', {
Ext.define('PBS.config.PruneAndGC', {
extend: 'Ext.panel.Panel',
alias: 'widget.pbsDatastorePruneAndGC',
alias: 'widget.pbsPruneAndGC',
title: gettext('Prune & GC Jobs'),
mixins: ['Proxmox.Mixin.CBind'],

View File

@ -240,7 +240,7 @@ Ext.define('PBS.datastore.DataStores', {
{
iconCls: 'fa fa-trash-o',
itemId: 'prunegc',
xtype: 'pbsDatastorePruneAndGC',
xtype: 'pbsPruneAndGC',
},
{
iconCls: 'fa fa-check-circle',

View File

@ -58,7 +58,7 @@ Ext.define('PBS.DataStorePanel', {
},
},
{
xtype: 'pbsDatastorePruneAndGC',
xtype: 'pbsPruneAndGC',
itemId: 'prunegc',
iconCls: 'fa fa-trash-o',
cbind: {