mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
add error banner for failed migration cutover and cancel migration (#17106)
This commit is contained in:
@@ -30,7 +30,7 @@ export class WizardController {
|
||||
if (api) {
|
||||
this._model = new MigrationStateModel(this.extensionContext, connectionId, api.sqlMigration);
|
||||
this.extensionContext.subscriptions.push(this._model);
|
||||
this.createWizard(this._model);
|
||||
await this.createWizard(this._model);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,16 +170,15 @@ export function createInformationRow(view: azdata.ModelView, label: string, valu
|
||||
.component();
|
||||
}
|
||||
|
||||
export function createHeadingTextComponent(view: azdata.ModelView, value: string): azdata.TextComponent {
|
||||
export async function createHeadingTextComponent(view: azdata.ModelView, value: string): Promise<azdata.TextComponent> {
|
||||
const component = createTextCompononent(view, value);
|
||||
component.updateCssStyles({
|
||||
await component.updateCssStyles({
|
||||
'font-size': '13px',
|
||||
'font-weight': 'bold',
|
||||
});
|
||||
return component;
|
||||
}
|
||||
|
||||
|
||||
export function createLabelTextComponent(view: azdata.ModelView, value: string, styles: { [key: string]: string; } = { 'width': '300px' }): azdata.TextComponent {
|
||||
const component = createTextCompononent(view, value, styles);
|
||||
return component;
|
||||
|
||||
Reference in New Issue
Block a user