Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-44372: Integrate NRPE UI with backend interface #3226

Merged
merged 10 commits into from
Oct 24, 2023
7 changes: 7 additions & 0 deletions XenAdmin/Dialogs/PropertiesDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public partial class PropertiesDialog : VerticallyTabbedDialog
private ClusteringEditPage ClusteringEditPage;
private SrReadCachingEditPage SrReadCachingEditPage;
private PoolAdvancedEditPage _poolAdvancedEditPage;
private NRPEEditPage NRPEEditPage;
#endregion

private readonly IXenObject _xenObjectBefore, _xenObjectCopy;
Expand Down Expand Up @@ -317,6 +318,12 @@ private void Build()
dialog.ShowDialog(Program.MainWindow);
}
}
if ((isHost || isPool) &&
(connection.Session.IsLocalSuperuser || connection.Session.Roles.Any(r => r.name_label == Role.MR_ROLE_POOL_ADMIN)))
{
NRPEEditPage = new NRPEEditPage();
ShowTab(NRPEEditPage);
}
}
finally
{
Expand Down
6 changes: 3 additions & 3 deletions XenAdmin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("[XenCenter]")]
[assembly: AssemblyDescription("[XenCenter]")]
[assembly: AssemblyTitle("XenCenter")]
[assembly: AssemblyDescription("XenCenter")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("[XenCenter]")]
[assembly: AssemblyProduct("XenCenter")]

danilo-delbusso marked this conversation as resolved.
Show resolved Hide resolved
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand Down
228 changes: 228 additions & 0 deletions XenAdmin/SettingsPanels/NRPEEditPage.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading