Skip to content

Commit

Permalink
Fixed broken layout in monitoring page (#8977)
Browse files Browse the repository at this point in the history
  • Loading branch information
bisht-richa authored Jul 23, 2024
1 parent b001501 commit aa301bc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
3 changes: 2 additions & 1 deletion java/code/src/com/suse/manager/webui/utils/ViewHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public enum ViewHelper {
"/rhn/manager/schedule/recurring-actions",
"/rhn/manager/schedule/maintenance/calendars",
"/rhn/manager/multiorg/recurring-actions",
"/rhn/manager/schedule/maintenance/schedules"
"/rhn/manager/schedule/maintenance/schedules",
"/rhn/manager/admin/config/monitoring"
);

ViewHelper() { }
Expand Down
1 change: 1 addition & 0 deletions web/html/src/core/spa/view-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const BOOTSTRAP_READY_PAGES: string[] = [
"/rhn/manager/schedule/maintenance/calendars",
"/rhn/manager/multiorg/recurring-actions",
"/rhn/manager/schedule/maintenance/schedules",
"/rhn/manager/admin/config/monitoring",
];

export const onEndNavigate = () => {
Expand Down
40 changes: 21 additions & 19 deletions web/html/src/manager/admin/config/monitoring-admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,25 +387,27 @@ const MonitoringAdmin = (props: MonitoringAdminProps) => {
</div>
}
>
<div className="row" style={{ display: "flex" }}>
<div className="col-sm-9">
<div className="col-md-4 text-left">
<label>{t("Monitoring")}</label>
</div>
<div className="col-md-8">
{exportersStatus ? (
<ExportersList exporters={exportersStatus} messages={exportersMessages} />
) : (
<ListPlaceholder />
)}
{restartNeeded ? (
<div>
<Icon type="system-reboot" className="text-warning fa-1-5x" />
<a href="/rhn/admin/config/Restart.do?">{t("Restarting")}</a>
{t(" Tomcat and Taskomatic is needed for the configuration changes to take effect.")}
</div>
) : null}
<ExportersMessages messages={exportersMessages} />
<div className="row">
<div className="col-md-9">
<div className="row">
<div className="col-md-4 text-left">
<label>{t("Monitoring")}</label>
</div>
<div className="col-md-8">
{exportersStatus ? (
<ExportersList exporters={exportersStatus} messages={exportersMessages} />
) : (
<ListPlaceholder />
)}
{restartNeeded ? (
<div>
<Icon type="system-reboot" className="text-warning fa-1-5x" />
<a href="/rhn/admin/config/Restart.do?">{t("Restarting")}</a>
{t(" Tomcat and Taskomatic is needed for the configuration changes to take effect.")}
</div>
) : null}
<ExportersMessages messages={exportersMessages} />
</div>
</div>
</div>
<HelpPanel isUyuni={props.isUyuni} />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed broken layout in monitoring page

0 comments on commit aa301bc

Please sign in to comment.