HyperV - faster loading VPS list
This commit is contained in:
parent
31c3cd7c80
commit
60bc7505ca
4 changed files with 24 additions and 1 deletions
|
@ -189,4 +189,7 @@
|
||||||
<data name="gvReplication.HeaderText" xml:space="preserve">
|
<data name="gvReplication.HeaderText" xml:space="preserve">
|
||||||
<value>Replication status</value>
|
<value>Replication status</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="btnReplicaStates.Text" xml:space="preserve">
|
||||||
|
<value>Show Replication Statuses</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -25,6 +25,11 @@
|
||||||
<div class="Right">
|
<div class="Right">
|
||||||
<wsp:SearchBox ID="searchBox" runat="server" />
|
<wsp:SearchBox ID="searchBox" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="Right" style="margin-right: 20px">
|
||||||
|
<asp:Button ID="btnReplicaStates" runat="server" meta:resourcekey="btnReplicaStates"
|
||||||
|
Text="Show Replication Statuses" CssClass="Button1" CausesValidation="False"
|
||||||
|
OnClick="btnReplicaStates_Click" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<asp:GridView ID="gvServers" runat="server" AutoGenerateColumns="False" EnableViewState="true"
|
<asp:GridView ID="gvServers" runat="server" AutoGenerateColumns="False" EnableViewState="true"
|
||||||
|
|
|
@ -54,7 +54,8 @@ namespace WebsitePanel.Portal.VPS2012
|
||||||
gvServers.Columns[4].Visible = !isUserSelected;
|
gvServers.Columns[4].Visible = !isUserSelected;
|
||||||
|
|
||||||
// replication
|
// replication
|
||||||
gvServers.Columns[5].Visible = PackagesHelper.IsQuotaEnabled(PanelSecurity.PackageId, Quotas.VPS2012_REPLICATION_ENABLED);
|
gvServers.Columns[5].Visible = false;
|
||||||
|
btnReplicaStates.Visible = PackagesHelper.IsQuotaEnabled(PanelSecurity.PackageId, Quotas.VPS2012_REPLICATION_ENABLED);
|
||||||
|
|
||||||
// check package quotas
|
// check package quotas
|
||||||
bool manageAllowed = VirtualMachines2012Helper.IsVirtualMachineManagementAllowed(PanelSecurity.PackageId);
|
bool manageAllowed = VirtualMachines2012Helper.IsVirtualMachineManagementAllowed(PanelSecurity.PackageId);
|
||||||
|
@ -119,6 +120,11 @@ namespace WebsitePanel.Portal.VPS2012
|
||||||
Response.Redirect(EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "vdc_import_server"));
|
Response.Redirect(EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "vdc_import_server"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void btnReplicaStates_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
gvServers.Columns[5].Visible = PackagesHelper.IsQuotaEnabled(PanelSecurity.PackageId, Quotas.VPS2012_REPLICATION_ENABLED);
|
||||||
|
}
|
||||||
|
|
||||||
protected void gvServers_RowCommand(object sender, GridViewCommandEventArgs e)
|
protected void gvServers_RowCommand(object sender, GridViewCommandEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.CommandName == "DeleteItem")
|
if (e.CommandName == "DeleteItem")
|
||||||
|
|
|
@ -48,6 +48,15 @@ namespace WebsitePanel.Portal.VPS2012 {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::WebsitePanel.Portal.SearchBox searchBox;
|
protected global::WebsitePanel.Portal.SearchBox searchBox;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnReplicaStates control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Button btnReplicaStates;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// gvServers control.
|
/// gvServers control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue