Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

401 B
Raw Blame
import { PLUGIN_MONITOR } from "metabase/plugins";
import { hasPremiumFeature } from "metabase-enterprise/settings";

import { getContentDiagnosticsRoutes } from "./routes";

export function initializePlugin() {
  if (hasPremiumFeature("content_diagnostics")) {
    PLUGIN_MONITOR.isContentDiagnosticsEnabled = true;
    PLUGIN_MONITOR.getContentDiagnosticsRoutes = getContentDiagnosticsRoutes;
  }
}