Skip to content

Commit

Permalink
Disable control-plane features for embedded dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpgreen2 committed Dec 16, 2024
1 parent 7a9ccaf commit 7baf0f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web-admin/src/routes/-/embed/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
import TopNavigationBarEmbed from "@rilldata/web-admin/features/embeds/TopNavigationBarEmbed.svelte";
import UnsupportedKind from "@rilldata/web-admin/features/embeds/UnsupportedKind.svelte";
import { ResourceKind } from "@rilldata/web-common/features/entity-management/resource-selectors";
import { featureFlags } from "@rilldata/web-common/features/feature-flags";
import type { V1ResourceName } from "@rilldata/web-common/runtime-client";
// Embedded dashboards communicate directly with the project runtime and do not communicate with the admin server.
// One by-product of this is that they have no access to control plane features like alerts, bookmarks, and scheduled reports.
featureFlags.set(false, "adminServer");
const instanceId = $page.url.searchParams.get("instance_id");
const initialResourceName = $page.url.searchParams.get("resource");
const initialResourceType =
Expand Down

0 comments on commit 7baf0f1

Please sign in to comment.