Skip to content

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

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

import { getDependencyDiagnosticsRoutes } from "./routes";

export function initializePlugin() {
  if (hasPremiumFeature("dependencies")) {
    PLUGIN_MONITOR.isDependencyDiagnosticsEnabled = true;
    PLUGIN_MONITOR.getDependencyDiagnosticsRoutes =
      getDependencyDiagnosticsRoutes;
  }
}