]>
git.proxmox.com Git - proxmox-backup.git/blob - www/DataStorePanel.js
0da943611c880a811fc78999397366e484f566a3
1 Ext
.define('PBS.DataStorePanel', {
2 extend
: 'Ext.tab.Panel',
3 alias
: 'widget.pbsDataStorePanel',
4 mixins
: ['Proxmox.Mixin.CBind'],
6 cbindData: function(initalConfig
) {
9 aclPath
: `/datastore/${me.datastore}`,
13 stateId
: 'pbs-datastore-panel',
16 stateEvents
: ['tabchange'],
18 applyState: function(state
) {
20 if (state
.tab
!== undefined) {
21 me
.setActiveTab(state
.tab
);
25 getState: function() {
28 tab
: me
.getActiveTab().getItemId(),
39 xtype
: 'pbsDataStoreSummary',
40 title
: gettext('Summary'),
42 iconCls
: 'fa fa-book',
44 datastore
: '{datastore}',
48 xtype
: 'pbsDataStoreContent',
52 datastore
: '{datastore}',
56 title
: gettext('Prune & Garbage collection'),
57 xtype
: 'pbsDataStorePruneAndGC',
59 iconCls
: 'fa fa-trash-o',
61 datastore
: '{datastore}',
65 iconCls
: 'fa fa-refresh',
67 xtype
: 'pbsSyncJobView',
69 datastore
: '{datastore}',
73 iconCls
: 'fa fa-check-circle',
75 xtype
: 'pbsVerifyJobView',
77 datastore
: '{datastore}',
83 iconCls
: 'fa fa-unlock',
91 initComponent: function() {
93 me
.title
= `${gettext("Datastore")}: ${me.datastore}`;