]>
Commit | Line | Data |
---|---|---|
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 | cbind: { | |
22 | datastore: '{datastore}', | |
23 | }, | |
24 | }, | |
25 | { | |
26 | xtype: 'pbsDataStoreStatistic', | |
27 | cbind: { | |
28 | datastore: '{datastore}', | |
29 | }, | |
30 | }, | |
31 | { | |
32 | itemId: 'acl', | |
33 | xtype: 'pbsACLView', | |
34 | aclExact: true, | |
35 | cbind: { | |
36 | aclPath: '{aclPath}', | |
37 | }, | |
38 | }, | |
39 | ], | |
40 | ||
41 | initComponent: function() { | |
42 | let me = this; | |
43 | me.title = `${gettext("Datastore")}: ${me.datastore}`; | |
44 | me.callParent(); | |
45 | }, | |
46 | }); |