FEATURE: nav bar items is covered by teams

FEATURE: nav bar items is covered by teams

This hack was very messy and non generic, instead we have a new pattern in teams we will be using

This removes the outlier nav item

diff --git a/assets/javascripts/discourse/initializers/initialize-discourse-prometheus-alert-receiver.js.es6 b/assets/javascripts/discourse/initializers/initialize-discourse-prometheus-alert-receiver.js.es6
index 72701dc..e6a8f6e 100644
--- a/assets/javascripts/discourse/initializers/initialize-discourse-prometheus-alert-receiver.js.es6
+++ b/assets/javascripts/discourse/initializers/initialize-discourse-prometheus-alert-receiver.js.es6
@@ -16,33 +16,6 @@ export default {
       messageBus.subscribe("/alert-receiver", payload => {
         site.set("firing_alerts_count", payload.firing_alerts_count);
       });
-
-      api.addNavigationBarItem({
-        name: "alerts-category",
-        site,
-        href: "/c/alerts?status=open",
-        customFilter: category => {
-          let alertCount = site.get("open_alerts_count") || 0;
-          if (alertCount <= 0) return false;
-          return !category;
-        }
-      });
-
-      api.modifyClass("model:nav-item", {
-        @computed(
-          "name",
-          "category",
-          "topicTrackingState.messageCount",
-          "site.open_alerts_count"
-        )
-        count(name, category, _, openAlertsCount) {
-          if (name === "alerts-category") {
-            return openAlertsCount;
-          } else {
-            return this._super();
-          }
-        }
-      });
     });
   }
 };

GitHub sha: c87613ad

1 Like