diff --git a/public/app/core/components/Select/FolderPicker.tsx b/public/app/core/components/Select/FolderPicker.tsx index 99380c613af..20a584061ad 100644 --- a/public/app/core/components/Select/FolderPicker.tsx +++ b/public/app/core/components/Select/FolderPicker.tsx @@ -1,3 +1,4 @@ +import { t } from '@lingui/macro'; import { debounce } from 'lodash'; import React, { PureComponent } from 'react'; @@ -218,7 +219,7 @@ export class FolderPicker extends PureComponent { > = [ - { label: 'Current', value: 'current' }, - { label: 'Dark', value: 'dark' }, - { label: 'Light', value: 'light' }, -]; - interface Props extends ShareModalTabProps {} interface State { @@ -69,12 +64,21 @@ export class ShareEmbed extends PureComponent { const { useCurrentTimeRange, selectedTheme, iframeHtml } = this.state; const isRelativeTime = this.props.dashboard ? this.props.dashboard.time.to === 'now' : false; + const timeRangeDescription = isRelativeTime + ? t({ + id: 'share-modal.embed.time-range-description', + message: 'Transforms the current relative time range to an absolute time range', + }) + : ''; + return ( <> -

Generate HTML for embedding an iframe with this panel.

+

+ Generate HTML for embedding an iframe with this panel. +

{ onChange={this.onUseCurrentTimeRangeChange} /> - - - + + The HTML code below can be pasted and included in another web page. Unless anonymous access is enabled, + the user viewing that page need to be signed into Grafana for the graph to load. + + } >