fix crm2013 organization menu
This commit is contained in:
parent
0a47c6b6d1
commit
d8f03d36aa
2 changed files with 27 additions and 1 deletions
|
@ -219,4 +219,7 @@
|
||||||
<data name="Text.OrganizationHome" xml:space="preserve">
|
<data name="Text.OrganizationHome" xml:space="preserve">
|
||||||
<value>Organization Home</value>
|
<value>Organization Home</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Text.CRM2013Group" xml:space="preserve">
|
||||||
|
<value>CRM 2013</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -89,7 +89,9 @@ namespace WebsitePanel.Portal
|
||||||
PrepareSharePointMenuRoot(cntx, items, imagePath);
|
PrepareSharePointMenuRoot(cntx, items, imagePath);
|
||||||
|
|
||||||
//CRM Menu
|
//CRM Menu
|
||||||
if (cntx.Groups.ContainsKey(ResourceGroups.HostedCRM))
|
if (cntx.Groups.ContainsKey(ResourceGroups.HostedCRM2013))
|
||||||
|
PrepareCRM2013MenuRoot(cntx, items, imagePath);
|
||||||
|
else if (cntx.Groups.ContainsKey(ResourceGroups.HostedCRM))
|
||||||
PrepareCRMMenuRoot(cntx, items, imagePath);
|
PrepareCRMMenuRoot(cntx, items, imagePath);
|
||||||
|
|
||||||
//OCS Menu
|
//OCS Menu
|
||||||
|
@ -227,6 +229,27 @@ namespace WebsitePanel.Portal
|
||||||
crmItems.Add(CreateMenuItem("StorageLimits", "crm_storage_settings"));
|
crmItems.Add(CreateMenuItem("StorageLimits", "crm_storage_settings"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void PrepareCRM2013MenuRoot(PackageContext cntx, MenuItemCollection items, string imagePath)
|
||||||
|
{
|
||||||
|
MenuItem item = new MenuItem(GetLocalizedString("Text.CRM2013Group"), "", imagePath + "crm_16.png", null);
|
||||||
|
|
||||||
|
item.Selectable = false;
|
||||||
|
|
||||||
|
PrepareCRM2013Menu(cntx, item.ChildItems);
|
||||||
|
|
||||||
|
if (item.ChildItems.Count > 0)
|
||||||
|
{
|
||||||
|
items.Add(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrepareCRM2013Menu(PackageContext cntx, MenuItemCollection crmItems)
|
||||||
|
{
|
||||||
|
crmItems.Add(CreateMenuItem("CRMOrganization", "CRMOrganizationDetails"));
|
||||||
|
crmItems.Add(CreateMenuItem("CRMUsers", "CRMUsers"));
|
||||||
|
crmItems.Add(CreateMenuItem("StorageLimits", "crm_storage_settings"));
|
||||||
|
}
|
||||||
|
|
||||||
private void PrepareBlackBerryMenuRoot(PackageContext cntx, MenuItemCollection items, string imagePath)
|
private void PrepareBlackBerryMenuRoot(PackageContext cntx, MenuItemCollection items, string imagePath)
|
||||||
{
|
{
|
||||||
MenuItem item = new MenuItem(GetLocalizedString("Text.BlackBerryGroup"), "", imagePath + "blackberry16.png", null);
|
MenuItem item = new MenuItem(GetLocalizedString("Text.BlackBerryGroup"), "", imagePath + "blackberry16.png", null);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue