Skip to content

Commit

Permalink
fix: rename canvas feature toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
mindspank committed Feb 4, 2025
1 parent bc9f20b commit c3a62b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
const createFolder = createRuntimeServiceCreateDirectory();
$: ({ instanceId } = $runtime);
const { customDashboards } = featureFlags;
const { canvasDashboards } = featureFlags;
$: currentFile = $page.params.file;
$: currentDirectory = currentFile
Expand Down Expand Up @@ -231,7 +231,7 @@
/>
Explore dashboard
</DropdownMenu.Item>
{#if $customDashboards}
{#if $canvasDashboards}
<DropdownMenu.Item
class="flex items-center justify-between gap-x-2"
on:click={async () => {
Expand Down
2 changes: 1 addition & 1 deletion web-common/src/features/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FeatureFlags {
ai = new FeatureFlag("user", !import.meta.env.VITE_PLAYWRIGHT_TEST);
exports = new FeatureFlag("user", true);
cloudDataViewer = new FeatureFlag("user", false);
customDashboards = new FeatureFlag("user", false);
canvasDashboards = new FeatureFlag("user", false);
dimensionSearch = new FeatureFlag("user", false);
clickhouseModeling = new FeatureFlag("user", false);
twoTieredNavigation = new FeatureFlag("user", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
const dispatch = createEventDispatcher();
const queryClient = useQueryClient();
const { customDashboards, ai } = featureFlags;
const { canvasDashboards, ai } = featureFlags;
$: ({ instanceId } = $runtime);
$: resourceQuery = fileArtifact.getResource(queryClient, instanceId);
Expand Down Expand Up @@ -77,7 +77,7 @@
Generate dashboard
</NavigationMenuItem>
{/if}
{#if $customDashboards}
{#if $canvasDashboards}
<NavigationMenuItem
on:click={() => {
dispatch("generate-chart", {
Expand Down

0 comments on commit c3a62b3

Please sign in to comment.