From 9e4dfae26b87042648d002c395118e91e2d9e579 Mon Sep 17 00:00:00 2001 From: Polina Semenova Date: Thu, 23 Dec 2021 14:22:28 +0300 Subject: [PATCH] showDiagram prop --- src/components/Plan.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Plan.vue b/src/components/Plan.vue index 944d0d59..e4205ee9 100644 --- a/src/components/Plan.vue +++ b/src/components/Plan.vue @@ -292,6 +292,7 @@ export default class Plan extends Vue { @Prop(String) private planSource!: string; @Prop(String) private planQuery!: string; @Prop(Number) private zoomTo!: number; + @Prop({default: true}) private showDiagram!: boolean; private queryText!: string; private plan!: IPlan | null; private rootNode!: any; @@ -316,7 +317,7 @@ export default class Plan extends Vue { highlightType: HighlightType.NONE, viewMode: ViewMode.FULL, orientation: Orientation.TWOD, - showDiagram: true, + showDiagram: this.showDiagram, diagramWidth: 20, };