mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
make font size consistent in publish dialog (#11614)
This commit is contained in:
@@ -13,6 +13,8 @@ import { SqlConnectionDataSource } from '../models/dataSources/sqlConnectionStri
|
|||||||
import { IPublishSettings, IGenerateScriptSettings } from '../models/IPublishSettings';
|
import { IPublishSettings, IGenerateScriptSettings } from '../models/IPublishSettings';
|
||||||
import { DeploymentOptions } from '../../../mssql/src/mssql';
|
import { DeploymentOptions } from '../../../mssql/src/mssql';
|
||||||
|
|
||||||
|
const titleFontSize = 12;
|
||||||
|
|
||||||
interface DataSourceDropdownValue extends azdata.CategoryValue {
|
interface DataSourceDropdownValue extends azdata.CategoryValue {
|
||||||
dataSource: SqlConnectionDataSource;
|
dataSource: SqlConnectionDataSource;
|
||||||
database: string;
|
database: string;
|
||||||
@@ -144,11 +146,7 @@ export class PublishDatabaseDialog {
|
|||||||
|
|
||||||
// add SQLCMD variables table if the project has any
|
// add SQLCMD variables table if the project has any
|
||||||
if (Object.keys(this.project.sqlCmdVariables).length > 0) {
|
if (Object.keys(this.project.sqlCmdVariables).length > 0) {
|
||||||
this.formBuilder.insertFormItem({
|
this.formBuilder.addFormItem(this.sqlCmdVariablesFormComponent, { titleFontSize: titleFontSize });
|
||||||
title: constants.sqlCmdTableLabel,
|
|
||||||
component: <azdata.TableComponent>this.sqlCmdVariablesTable
|
|
||||||
},
|
|
||||||
6);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let formModel = this.formBuilder.component();
|
let formModel = this.formBuilder.component();
|
||||||
@@ -432,7 +430,7 @@ export class PublishDatabaseDialog {
|
|||||||
if (Object.keys(result.sqlCmdVariables).length) {
|
if (Object.keys(result.sqlCmdVariables).length) {
|
||||||
// add SQLCMD Variables table if it wasn't there before
|
// add SQLCMD Variables table if it wasn't there before
|
||||||
if (Object.keys(this.project.sqlCmdVariables).length === 0) {
|
if (Object.keys(this.project.sqlCmdVariables).length === 0) {
|
||||||
this.formBuilder?.insertFormItem(<azdata.FormComponent>this.sqlCmdVariablesFormComponent, 6);
|
this.formBuilder?.addFormItem(<azdata.FormComponent>this.sqlCmdVariablesFormComponent, { titleFontSize: titleFontSize });
|
||||||
}
|
}
|
||||||
} else if (Object.keys(this.project.sqlCmdVariables).length === 0) {
|
} else if (Object.keys(this.project.sqlCmdVariables).length === 0) {
|
||||||
// remove the table if there are no SQLCMD variables in the project and loaded profile
|
// remove the table if there are no SQLCMD variables in the project and loaded profile
|
||||||
|
|||||||
Reference in New Issue
Block a user