diff --git a/src/sql/platform/dialog/dialogContainer.component.ts b/src/sql/platform/dialog/dialogContainer.component.ts index 7e7019c41a..c096e2fa9d 100644 --- a/src/sql/platform/dialog/dialogContainer.component.ts +++ b/src/sql/platform/dialog/dialogContainer.component.ts @@ -6,7 +6,7 @@ 'use strict'; import 'vs/css!./media/dialogModal'; -import { Component, AfterContentInit, ViewChild, Input, Inject, forwardRef, ElementRef } from '@angular/core'; +import { Component, ViewChild, Inject, forwardRef, ElementRef, AfterViewInit } from '@angular/core'; import { ModelViewContent } from 'sql/parts/modelComponents/modelViewContent.component'; import { IBootstrapParams } from 'sql/services/bootstrap/bootstrapService'; import { DialogPane } from 'sql/platform/dialog/dialogPane'; @@ -24,7 +24,7 @@ export interface DialogComponentParams extends IBootstrapParams { selector: 'dialog-modelview-container', providers: [], template: ` -
+
Step {{_dialogPane.pageNumber}}

{{_dialogPane.title}}

@@ -33,9 +33,11 @@ export interface DialogComponentParams extends IBootstrapParams {
+ + ` }) -export class DialogContainer implements AfterContentInit { +export class DialogContainer implements AfterViewInit { private _onResize = new Emitter(); public readonly onResize: Event = this._onResize.event; private _dialogPane: DialogPane; @@ -54,7 +56,7 @@ export class DialogContainer implements AfterContentInit { this._dialogPane = this._params.dialogPane; } - ngAfterContentInit(): void { + ngAfterViewInit(): void { this._modelViewContent.onEvent(event => { if (event.isRootComponent && event.eventType === ComponentEventType.validityChanged) { this._params.validityChangedCallback(event.args);