]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/storage/Browser.js
1 Ext
.define('PVE.storage.Browser', {
2 extend
: 'PVE.panel.Config',
3 alias
: 'widget.PVE.storage.Browser',
5 onlineHelp
: 'chapter-pvesm.html',
7 initComponent: function() {
10 var nodename
= me
.pveSelNode
.data
.node
;
12 throw "no node name specified";
15 var storeid
= me
.pveSelNode
.data
.storage
;
17 throw "no storage ID specified";
23 title
: gettext('Summary'),
24 xtype
: 'pveStorageSummary',
25 iconCls
: 'fa fa-book',
30 var caps
= Ext
.state
.Manager
.get('GuiCap');
33 title
: Ext
.String
.format(gettext("Storage {0} on node {1}"),
34 "'" + storeid
+ "'", "'" + nodename
+ "'"),
35 hstateid
: 'storagetab'
38 if (caps
.storage
['Datastore.Allocate']) {
40 xtype
: 'pveStorageContentView',
41 title
: gettext('Content'),
47 if (caps
.storage
['Permissions.Modify']) {
50 title
: gettext('Permissions'),
51 iconCls
: 'fa fa-unlock',
52 onlineHelp
: 'chapter-pveum.html',
53 itemId
: 'permissions',
54 path
: '/storage/' + storeid