From 36e228ebf7e10754604b102328ff48a391c385dd Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Tue, 2 Mar 2021 18:07:40 -0800 Subject: [PATCH] fix description not provided issue (#14510) --- src/sql/azdata.proposed.d.ts | 2 +- .../browser/modelComponents/radioCardGroup.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sql/azdata.proposed.d.ts b/src/sql/azdata.proposed.d.ts index 8886195858..2d4aa51441 100644 --- a/src/sql/azdata.proposed.d.ts +++ b/src/sql/azdata.proposed.d.ts @@ -383,7 +383,7 @@ declare module 'azdata' { } export type RadioCardSelectionChangedEvent = { cardId: string; card: RadioCard }; - export type RadioCardLinkClickEvent = { cardId: string, card: RadioCard, selectorText: RadioCardDescription }; + export type RadioCardLinkClickEvent = { cardId: string, card: RadioCard, description: RadioCardDescription }; export interface RadioCardGroupComponent extends Component, RadioCardGroupComponentProperties { /** diff --git a/src/sql/workbench/browser/modelComponents/radioCardGroup.component.ts b/src/sql/workbench/browser/modelComponents/radioCardGroup.component.ts index de93b96880..045d2fd8a2 100644 --- a/src/sql/workbench/browser/modelComponents/radioCardGroup.component.ts +++ b/src/sql/workbench/browser/modelComponents/radioCardGroup.component.ts @@ -190,9 +190,9 @@ export default class RadioCardGroup extends ComponentBase{ cardId, - textContents: deepClone(textContents), + description: deepClone(textContents), card: deepClone(this.getCardById(cardId)) } });