diff --git a/assets/js/components/HostDetails/HostDetails.jsx b/assets/js/components/HostDetails/HostDetails.jsx
index f98434d3ce..f813138fb3 100644
--- a/assets/js/components/HostDetails/HostDetails.jsx
+++ b/assets/js/components/HostDetails/HostDetails.jsx
@@ -109,6 +109,13 @@ const HostDetails = () => {
+
+
@@ -121,13 +128,6 @@ const HostDetails = () => {
data={host.sles_subscriptions}
/>
-
-
);
};
diff --git a/lib/trento/application/projectors/sles_subscriptions_projector.ex b/lib/trento/application/projectors/sles_subscriptions_projector.ex
index b4a8954ba6..bd123c8e74 100644
--- a/lib/trento/application/projectors/sles_subscriptions_projector.ex
+++ b/lib/trento/application/projectors/sles_subscriptions_projector.ex
@@ -37,4 +37,19 @@ defmodule Trento.SlesSubscriptionsProjector do
end)
end
)
+
+ def after_update(
+ %SlesSubscriptionsUpdated{host_id: id, subscriptions: subscriptions},
+ _,
+ _
+ ) do
+ TrentoWeb.Endpoint.broadcast(
+ "monitoring:hosts",
+ "host_details_updated",
+ %{
+ id: id,
+ sles_subscriptions: subscriptions
+ }
+ )
+ end
end