]> git.proxmox.com Git - proxmox-backup.git/blob - www/DataStorePanel.js
059fd3b2c1a1beac802f1df63f8d680fd0cf5bae
[proxmox-backup.git] / www / DataStorePanel.js
1 Ext.define('PBS.DataStorePanel', {
2 extend: 'Ext.tab.Panel',
3 alias: 'widget.pbsDataStorePanel',
4 mixins: ['Proxmox.Mixin.CBind'],
5
6 cbindData: function(initalConfig) {
7 let me = this;
8 return {
9 aclPath: `/datastore/${me.datastore}`,
10 };
11 },
12
13 border: false,
14 defaults: {
15 border: false,
16 },
17
18 items: [
19 {
20 xtype: 'pbsDataStoreSummary',
21 title: gettext('Summary'),
22 itemId: 'summary',
23 iconCls: 'fa fa-book',
24 cbind: {
25 datastore: '{datastore}',
26 },
27 },
28 {
29 xtype: 'pbsDataStoreContent',
30 itemId: 'content',
31 iconCls: 'fa fa-th',
32 cbind: {
33 datastore: '{datastore}',
34 },
35 },
36 {
37 title: gettext('Prune & Garbage collection'),
38 xtype: 'pbsDataStorePruneAndGC',
39 itemId: 'prunegc',
40 iconCls: 'fa fa-trash-o',
41 cbind: {
42 datastore: '{datastore}',
43 },
44 },
45 {
46 iconCls: 'fa fa-refresh',
47 itemId: 'syncjobs',
48 xtype: 'pbsSyncJobView',
49 cbind: {
50 datastore: '{datastore}',
51 },
52 },
53 {
54 iconCls: 'fa fa-check-circle',
55 itemId: 'verifyjobs',
56 xtype: 'pbsVerifyJobView',
57 cbind: {
58 datastore: '{datastore}',
59 },
60 },
61 {
62 itemId: 'acl',
63 xtype: 'pbsACLView',
64 iconCls: 'fa fa-unlock',
65 aclExact: true,
66 cbind: {
67 aclPath: '{aclPath}',
68 },
69 },
70 ],
71
72 initComponent: function() {
73 let me = this;
74 me.title = `${gettext("Datastore")}: ${me.datastore}`;
75 me.callParent();
76 },
77 });