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