Account Home fix
This commit is contained in:
parent
1712570dd1
commit
e301486e94
5 changed files with 17 additions and 3 deletions
Binary file not shown.
After Width: | Height: | Size: 601 B |
|
@ -249,4 +249,7 @@
|
||||||
<data name="Text.Users" xml:space="preserve">
|
<data name="Text.Users" xml:space="preserve">
|
||||||
<value>Users</value>
|
<value>Users</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Text.CreateOrganization" xml:space="preserve">
|
||||||
|
<value>Create Organization</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -74,6 +74,8 @@ namespace WebsitePanel.Portal.UserControls
|
||||||
|
|
||||||
public void BindMenu(MenuItemCollection items)
|
public void BindMenu(MenuItemCollection items)
|
||||||
{
|
{
|
||||||
|
if ((PackageId <= 0) || (ItemID <= 0))
|
||||||
|
return;
|
||||||
|
|
||||||
//Organization menu group;
|
//Organization menu group;
|
||||||
if (Cntx.Groups.ContainsKey(ResourceGroups.HostedOrganizations))
|
if (Cntx.Groups.ContainsKey(ResourceGroups.HostedOrganizations))
|
||||||
|
|
|
@ -106,13 +106,21 @@ namespace WebsitePanel.Portal
|
||||||
ShowImg = true;
|
ShowImg = true;
|
||||||
|
|
||||||
|
|
||||||
if (PackageId > 0)
|
if ((PackageId > 0) && (Cntx.Groups.ContainsKey(ResourceGroups.HostedOrganizations)))
|
||||||
{
|
{
|
||||||
MenuItemCollection items = new MenuItemCollection();
|
MenuItemCollection items = new MenuItemCollection();
|
||||||
|
|
||||||
|
if (ItemID > 0)
|
||||||
|
{
|
||||||
items.Add(CreateMenuItem("OrganizationHome", "organization_home", @"Icons/organization_home_48.png"));
|
items.Add(CreateMenuItem("OrganizationHome", "organization_home", @"Icons/organization_home_48.png"));
|
||||||
|
|
||||||
BindMenu(items);
|
BindMenu(items);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
items.Add(CreateMenuItem("CreateOrganization", "create_organization", @"Icons/create_organization_48.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
UserOrgPanel.Visible = true;
|
UserOrgPanel.Visible = true;
|
||||||
|
|
||||||
OrgIcons.DataSource = items;
|
OrgIcons.DataSource = items;
|
||||||
|
|
|
@ -109,6 +109,7 @@
|
||||||
<Content Include="App_Themes\Default\Icons\blackberry_users_48.png" />
|
<Content Include="App_Themes\Default\Icons\blackberry_users_48.png" />
|
||||||
<Content Include="App_Themes\Default\Icons\block.png" />
|
<Content Include="App_Themes\Default\Icons\block.png" />
|
||||||
<Content Include="App_Themes\Default\Icons\configureVLan.png" />
|
<Content Include="App_Themes\Default\Icons\configureVLan.png" />
|
||||||
|
<Content Include="App_Themes\Default\Icons\create_organization_48.png" />
|
||||||
<Content Include="App_Themes\Default\Icons\crm_orgs_48.png" />
|
<Content Include="App_Themes\Default\Icons\crm_orgs_48.png" />
|
||||||
<Content Include="App_Themes\Default\Icons\crm_users_48.png" />
|
<Content Include="App_Themes\Default\Icons\crm_users_48.png" />
|
||||||
<Content Include="App_Themes\Default\Icons\domains_48.png" />
|
<Content Include="App_Themes\Default\Icons\domains_48.png" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue