Skip to content

Commit

Permalink
chore: enable dashboard on dev pages (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki authored Nov 19, 2024
1 parent e5d38a7 commit c6148ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import {
import { DashboardWidget } from '../../packages/react-components-pro/src/DashboardWidget.js';
import './dashboard-styles.css';

window.Vaadin ||= {};
window.Vaadin.featureFlags ||= {};
window.Vaadin.featureFlags.dashboardComponent = true;

type TestItem = DashboardItem & {
title?: string;
content?: string;
Expand Down
4 changes: 4 additions & 0 deletions dev/pages/DashboardLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { DashboardSection } from '../../packages/react-components-pro/src/Dashbo
import type { CSSProperties } from 'react';
import './dashboard-styles.css';

window.Vaadin ||= {};
window.Vaadin.featureFlags ||= {};
window.Vaadin.featureFlags.dashboardComponent = true;

const colspan2 = {
'--vaadin-dashboard-item-colspan': '2',
} as CSSProperties;
Expand Down

0 comments on commit c6148ec

Please sign in to comment.