]>
git.proxmox.com Git - proxmox-backup.git/blob - www/datastore/Panel.js
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(),
37 tools
: [PBS
.Utils
.get_help_tool("datastore_intro")],
41 xtype
: 'pbsDataStoreSummary',
42 title
: gettext('Summary'),
44 iconCls
: 'fa fa-book',
46 datastore
: '{datastore}',
50 xtype
: 'pbsDataStoreContent',
54 datastore
: '{datastore}',
58 title
: gettext('Prune & GC'),
59 xtype
: 'pbsDataStorePruneAndGC',
61 iconCls
: 'fa fa-trash-o',
63 datastore
: '{datastore}',
67 iconCls
: 'fa fa-refresh',
69 xtype
: 'pbsSyncJobView',
71 datastore
: '{datastore}',
75 iconCls
: 'fa fa-check-circle',
77 xtype
: 'pbsVerifyJobView',
79 datastore
: '{datastore}',
83 xtype
: 'pbsDatastoreOptionView',
85 title
: gettext('Options'),
88 datastore
: '{datastore}',
94 iconCls
: 'fa fa-unlock',
101 initComponent: function() {
103 me
.title
= `${gettext("Datastore")}: ${me.datastore}`;