]> git.proxmox.com Git - proxmox-backup.git/blame - www/DataStorePanel.js
ui: add ACL panel to datastores
[proxmox-backup.git] / www / DataStorePanel.js
CommitLineData
c0ac2074
DC
1Ext.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 itemId: 'acl',
27 xtype: 'pbsACLView',
28 aclExact: true,
29 cbind: {
30 aclPath: '{aclPath}',
31 },
32 },
33 ],
34
35 initComponent: function() {
36 let me = this;
37 me.title = `${gettext("Data Store")}: ${me.datastore}`;
38 me.callParent();
39 },
40});