Incorrect displaying of shared/dedicated IP on website details screen.
This commit is contained in:
parent
25654d2607
commit
21e91d2931
3 changed files with 22 additions and 10 deletions
|
@ -176,15 +176,13 @@ namespace WebsitePanel.Portal
|
|||
ddlIpAddresses.Items.Add(new ListItem(fullIP, ip.PackageAddressID.ToString()));
|
||||
}
|
||||
|
||||
bool isDedicatedIP = false;
|
||||
if (!String.IsNullOrEmpty(site.SiteIPAddress))
|
||||
if (site.IsDedicatedIP)
|
||||
{
|
||||
litIPAddress.Text = site.SiteIPAddress;
|
||||
isDedicatedIP = true;
|
||||
}
|
||||
|
||||
dedicatedIP.Visible = isDedicatedIP;
|
||||
sharedIP.Visible = !isDedicatedIP;
|
||||
dedicatedIP.Visible = site.IsDedicatedIP;
|
||||
sharedIP.Visible = !site.IsDedicatedIP;
|
||||
cmdSwitchToDedicatedIP.Visible = (ddlIpAddresses.Items.Count > 0);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue