pull/34488/head
Ying WANG 4 years ago
parent d01cfcc2ed
commit 8e4c4d7c93
  1. 5
      docs/sources/dashboards/export-import.md
  2. 2
      public/app/features/dashboard/components/ShareModal/ShareExport.tsx

@ -25,6 +25,11 @@ add template variables for things like a metric prefix (use constant variable) a
A template variable of the type `Constant` will automatically be hidden in
the dashboard, and will also be added as a required input when the dashboard is imported.
### Export with default values removed
If you want to export a dashboard without default values in order to reduce the exported json file size, it is a good idea to check the toggle "Export with default values removed".
When import, the removed default values would be added automatically to the dashboard.
## Importing a dashboard
To import a dashboard click the + icon in the side menu, and then click **Import**.

@ -137,7 +137,7 @@ export class ShareExport extends PureComponent<Props, State> {
<Field label="Export for sharing externally">
<Switch value={shareExternally} onChange={this.onShareExternallyChange} />
</Field>
<Field label="Export with trimed dashboard json">
<Field label="Export with default values removed">
<Switch value={trimDefaults} onChange={this.onTrimDefaultsChange} />
</Field>
<Modal.ButtonRow>

Loading…
Cancel
Save