From 8e4c4d7c93e9a1c58322e4cfca447c3b4dee148b Mon Sep 17 00:00:00 2001 From: Ying WANG Date: Tue, 25 May 2021 12:44:52 +0200 Subject: [PATCH] update doc --- docs/sources/dashboards/export-import.md | 5 +++++ .../features/dashboard/components/ShareModal/ShareExport.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/sources/dashboards/export-import.md b/docs/sources/dashboards/export-import.md index 5fe0f3ea01a..7e9825e4d7f 100644 --- a/docs/sources/dashboards/export-import.md +++ b/docs/sources/dashboards/export-import.md @@ -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**. diff --git a/public/app/features/dashboard/components/ShareModal/ShareExport.tsx b/public/app/features/dashboard/components/ShareModal/ShareExport.tsx index 7850e24f966..e76dd006409 100644 --- a/public/app/features/dashboard/components/ShareModal/ShareExport.tsx +++ b/public/app/features/dashboard/components/ShareModal/ShareExport.tsx @@ -137,7 +137,7 @@ export class ShareExport extends PureComponent { - +