]> git.proxmox.com Git - proxmox-backup.git/blob - www/DataStorePanel.js
a00ccd476938bc7951cdbd353a07c413df2375ce
[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 cbind: {
24 datastore: '{datastore}',
25 },
26 },
27 {
28 xtype: 'pbsDataStoreContent',
29 itemId: 'content',
30 cbind: {
31 datastore: '{datastore}',
32 },
33 },
34 {
35 title: gettext('Prune & Garbage collection'),
36 xtype: 'pbsDataStorePruneAndGC',
37 itemId: 'prunegc',
38 cbind: {
39 datastore: '{datastore}',
40 },
41 },
42 {
43 itemId: 'acl',
44 xtype: 'pbsACLView',
45 aclExact: true,
46 cbind: {
47 aclPath: '{aclPath}',
48 },
49 },
50 ],
51
52 initComponent: function() {
53 let me = this;
54 me.title = `${gettext("Datastore")}: ${me.datastore}`;
55 me.callParent();
56 },
57 });