mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 20:05:21 +00:00
ext6migrate: add Tabs to Storages
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
86cc7049d2
commit
232c96e0f1
@ -15,18 +15,17 @@ Ext.define('PVE.storage.Browser', {
|
|||||||
throw "no storage ID specified";
|
throw "no storage ID specified";
|
||||||
}
|
}
|
||||||
|
|
||||||
var caps = Ext.state.Manager.get('GuiCap');
|
|
||||||
|
|
||||||
me.items = [
|
me.items = [
|
||||||
{
|
{
|
||||||
title: gettext('SummaryTODO'),
|
title: gettext('Summary'),
|
||||||
xtype: 'panel',
|
xtype: 'pveStorageSummary',
|
||||||
// title: gettext('Summary'),
|
|
||||||
// xtype: 'pveStorageSummary',
|
|
||||||
itemId: 'summary'
|
itemId: 'summary'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
var caps = Ext.state.Manager.get('GuiCap');
|
||||||
|
|
||||||
Ext.apply(me, {
|
Ext.apply(me, {
|
||||||
title: Ext.String.format(gettext("Storage {0} on node {1}"),
|
title: Ext.String.format(gettext("Storage {0} on node {1}"),
|
||||||
"'" + storeid + "'", "'" + nodename + "'"),
|
"'" + storeid + "'", "'" + nodename + "'"),
|
||||||
@ -35,21 +34,16 @@ Ext.define('PVE.storage.Browser', {
|
|||||||
|
|
||||||
if (caps.storage['Datastore.Allocate']) {
|
if (caps.storage['Datastore.Allocate']) {
|
||||||
me.items.push({
|
me.items.push({
|
||||||
xtype: 'gridpanel',
|
xtype: 'pveStorageContentView',
|
||||||
title: gettext('ContentTODO'),
|
title: gettext('Content'),
|
||||||
// xtype: 'pveStorageContentView',
|
|
||||||
// title: gettext('Content'),
|
|
||||||
itemId: 'content'
|
itemId: 'content'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (caps.storage['Permissions.Modify']) {
|
if (caps.storage['Permissions.Modify']) {
|
||||||
me.items.push({
|
me.items.push({
|
||||||
xtype: 'window',
|
xtype: 'pveACLView',
|
||||||
title: gettext('PermissionsTODO'),
|
title: gettext('Permissions'),
|
||||||
// xtype: 'pveACLView',
|
|
||||||
// title: gettext('Permissions'),
|
|
||||||
|
|
||||||
itemId: 'permissions',
|
itemId: 'permissions',
|
||||||
path: '/storage/' + storeid
|
path: '/storage/' + storeid
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user