mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-18 03:21:36 -04:00
Add link to Azure pricing calculator in New Database dialog (#23389)
This commit is contained in:
@@ -123,7 +123,7 @@ export abstract class DialogBase<DialogResult> {
|
||||
}
|
||||
|
||||
protected createLabelInputContainer(label: string, component: azdata.Component, required: boolean = false): azdata.FlexContainer {
|
||||
const labelComponent = this.modelView.modelBuilder.text().withProps({ width: DefaultLabelWidth, value: label, requiredIndicator: required }).component();
|
||||
const labelComponent = this.modelView.modelBuilder.text().withProps({ width: DefaultLabelWidth, value: label, requiredIndicator: required, CSSStyles: { 'padding-right': '10px' } }).component();
|
||||
const container = this.modelView.modelBuilder.flexContainer().withLayout({ flexFlow: 'horizontal', flexWrap: 'nowrap', alignItems: 'center' }).withItems([labelComponent], { flex: '0 0 auto' }).component();
|
||||
container.addItem(component, { flex: '1 1 auto' });
|
||||
return container;
|
||||
@@ -356,4 +356,8 @@ export abstract class DialogBase<DialogResult> {
|
||||
protected getSectionItemLayout(): azdata.FlexItemLayout {
|
||||
return { CSSStyles: { 'margin-block-end': '5px' } };
|
||||
}
|
||||
|
||||
protected createHyperlink(label: string, url: string): azdata.HyperlinkComponent {
|
||||
return this.modelView.modelBuilder.hyperlink().withProps({ label: label, ariaLabel: label, url: url, showLinkIcon: true }).component();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user