|
|
|
@ -7,7 +7,6 @@ import { DashboardExporter } from 'app/features/dashboard/components/DashExportM |
|
|
|
|
import { appEvents } from 'app/core/core'; |
|
|
|
|
import { ShowModalReactEvent } from 'app/types/events'; |
|
|
|
|
import { ViewJsonModal } from './ViewJsonModal'; |
|
|
|
|
import { config } from '@grafana/runtime'; |
|
|
|
|
|
|
|
|
|
interface Props { |
|
|
|
|
dashboard: DashboardModel; |
|
|
|
@ -138,11 +137,9 @@ export class ShareExport extends PureComponent<Props, State> { |
|
|
|
|
<Field label="Export for sharing externally"> |
|
|
|
|
<Switch value={shareExternally} onChange={this.onShareExternallyChange} /> |
|
|
|
|
</Field> |
|
|
|
|
{config.featureToggles.trimDefaults && ( |
|
|
|
|
<Field label="Export with trimed dashboard json"> |
|
|
|
|
<Switch value={trimDefaults} onChange={this.onTrimDefaultsChange} /> |
|
|
|
|
</Field> |
|
|
|
|
)} |
|
|
|
|
<Field label="Export with trimed dashboard json"> |
|
|
|
|
<Switch value={trimDefaults} onChange={this.onTrimDefaultsChange} /> |
|
|
|
|
</Field> |
|
|
|
|
<Modal.ButtonRow> |
|
|
|
|
<Button variant="secondary" onClick={onDismiss} fill="outline"> |
|
|
|
|
Cancel |
|
|
|
|