Skip to content

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

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

import { WritableConnectionInfoSection } from "./components/WritableConnectionInfoSection";
import { getWritableConnectionInfoRoutes } from "./routes";

export function initializePlugin() {
  if (hasPremiumFeature("writable_connection")) {
    PLUGIN_WRITABLE_CONNECTION.getWritableConnectionInfoRoutes =
      getWritableConnectionInfoRoutes;
    PLUGIN_WRITABLE_CONNECTION.WritableConnectionInfoSection =
      WritableConnectionInfoSection;
  }
}