pve-manager/www/manager6/storage/Browser.js
Dominik Csapak 565a68be99 add onlineHelp to pool and storage
and their options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 16:42:17 +02:00

61 lines
1.2 KiB
JavaScript

Ext.define('PVE.storage.Browser', {
extend: 'PVE.panel.Config',
alias: 'widget.PVE.storage.Browser',
onlineHelp: 'chapter-pvesm.html',
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";
}
me.items = [
{
title: gettext('Summary'),
xtype: 'pveStorageSummary',
iconCls: 'fa fa-book',
itemId: 'summary'
}
];
var caps = Ext.state.Manager.get('GuiCap');
Ext.apply(me, {
title: Ext.String.format(gettext("Storage {0} on node {1}"),
"'" + storeid + "'", "'" + nodename + "'"),
hstateid: 'storagetab'
});
if (caps.storage['Datastore.Allocate']) {
me.items.push({
xtype: 'pveStorageContentView',
title: gettext('Content'),
iconCls: 'fa fa-th',
itemId: 'content'
});
}
if (caps.storage['Permissions.Modify']) {
me.items.push({
xtype: 'pveACLView',
title: gettext('Permissions'),
iconCls: 'fa fa-unlock',
onlineHelp: 'chapter-pveum.html',
itemId: 'permissions',
path: '/storage/' + storeid
});
}
me.callParent();
}
});