From bc4165037c547657e53d4c32f27c63c0fef8ebae Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Fri, 27 Sep 2019 11:54:11 -0700 Subject: [PATCH] fall back to the old text component behavior... (#7405) * fall back to the old text component behavior... if no required indicator and description is needed, fall back to the old text component behavior. * Update text.component.ts indention --- .../browser/modelComponents/text.component.ts | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/sql/workbench/browser/modelComponents/text.component.ts b/src/sql/workbench/browser/modelComponents/text.component.ts index 677d8f8c73..f514ca39eb 100644 --- a/src/sql/workbench/browser/modelComponents/text.component.ts +++ b/src/sql/workbench/browser/modelComponents/text.component.ts @@ -18,13 +18,16 @@ import { TitledComponent } from 'sql/workbench/browser/modelComponents/titledCom @Component({ selector: 'modelview-text', template: ` -
-

-

*

-
-
-
-
` +
+

+

*

+
+
+
+
+ +

+
` }) export default class TextComponent extends TitledComponent implements IComponent, OnDestroy, AfterViewInit { @Input() descriptor: IComponentDescriptor; @@ -92,6 +95,10 @@ export default class TextComponent extends TitledComponent implements IComponent return text; } + public get showDiv(): boolean { + return this.requiredIndicator || !!this.description; + } + private onClick() { this.fireEvent({ eventType: ComponentEventType.onDidClick,