|
|
|
@ -24,7 +24,7 @@ import { dashboardWatcher } from 'app/features/live/dashboard/dashboardWatcher'; |
|
|
|
|
import { GrafanaRouteComponentProps } from 'app/core/navigation/types'; |
|
|
|
|
import { getTimeSrv } from '../services/TimeSrv'; |
|
|
|
|
import { getKioskMode } from 'app/core/navigation/kiosk'; |
|
|
|
|
import { GrafanaTheme2, TimeRange, UrlQueryValue } from '@grafana/data'; |
|
|
|
|
import { GrafanaTheme2, TimeRange } from '@grafana/data'; |
|
|
|
|
import { DashboardLoading } from '../components/DashboardLoading/DashboardLoading'; |
|
|
|
|
import { DashboardFailed } from '../components/DashboardLoading/DashboardFailed'; |
|
|
|
|
import { DashboardPrompt } from '../components/DashboardPrompt/DashboardPrompt'; |
|
|
|
@ -45,7 +45,6 @@ type DashboardPageRouteSearchParams = { |
|
|
|
|
viewPanel?: string; |
|
|
|
|
editview?: string; |
|
|
|
|
inspect?: string; |
|
|
|
|
kiosk?: UrlQueryValue; |
|
|
|
|
from?: string; |
|
|
|
|
to?: string; |
|
|
|
|
refresh?: string; |
|
|
|
@ -314,7 +313,7 @@ export class UnthemedDashboardPage extends PureComponent<Props, State> { |
|
|
|
|
render() { |
|
|
|
|
const { dashboard, isInitSlow, initError, queryParams, theme } = this.props; |
|
|
|
|
const { editPanel, viewPanel, updateScrollTop } = this.state; |
|
|
|
|
const kioskMode = getKioskMode(queryParams.kiosk); |
|
|
|
|
const kioskMode = getKioskMode(); |
|
|
|
|
const styles = getStyles(theme, kioskMode); |
|
|
|
|
|
|
|
|
|
if (!dashboard) { |
|
|
|
@ -380,7 +379,7 @@ export class UnthemedDashboardPage extends PureComponent<Props, State> { |
|
|
|
|
/* |
|
|
|
|
* Styles |
|
|
|
|
*/ |
|
|
|
|
export const getStyles = stylesFactory((theme: GrafanaTheme2, kioskMode) => { |
|
|
|
|
export const getStyles = stylesFactory((theme: GrafanaTheme2, kioskMode: KioskMode) => { |
|
|
|
|
const contentPadding = kioskMode !== KioskMode.Full ? theme.spacing(0, 2, 2) : theme.spacing(2); |
|
|
|
|
return { |
|
|
|
|
dashboardContainer: css` |
|
|
|
|