mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-25 04:23:43 +00:00
43 lines
820 B
JavaScript
43 lines
820 B
JavaScript
Ext.define('PVE.storage.Browser', {
|
|
extend: 'PVE.panel.Config',
|
|
alias: 'widget.PVE.storage.Browser',
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
var nodename = me.pveSelNode.data.node;
|
|
if (!nodename) {
|
|
throw "no node name specified";
|
|
}
|
|
|
|
var storeid = me.pveSelNode.data.storage;
|
|
if (!storeid) {
|
|
throw "no storage ID specified";
|
|
}
|
|
|
|
Ext.apply(me, {
|
|
title: "Storage '" + storeid + "'" + "' on node '" + nodename + "'",
|
|
hstateid: 'storagetab',
|
|
items: [
|
|
{
|
|
title: 'Summary',
|
|
xtype: 'pveStorageSummary',
|
|
itemId: 'summary'
|
|
},
|
|
{
|
|
xtype: 'pveStorageContentView',
|
|
title: 'Content',
|
|
itemId: 'content'
|
|
},
|
|
{
|
|
title: 'Permissions',
|
|
itemId: 'permissions',
|
|
html: 'Permissions '
|
|
}
|
|
]
|
|
});
|
|
|
|
me.callParent();
|
|
}
|
|
});
|