mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Update step when page is navigated to (#9839)
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import 'vs/css!./media/dialogModal';
|
import 'vs/css!./media/dialogModal';
|
||||||
import { Component, ViewChild, Inject, forwardRef, ElementRef, AfterViewInit } from '@angular/core';
|
import { Component, ViewChild, Inject, forwardRef, ElementRef, AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
||||||
import { ModelViewContent } from 'sql/workbench/browser/modelComponents/modelViewContent.component';
|
import { ModelViewContent } from 'sql/workbench/browser/modelComponents/modelViewContent.component';
|
||||||
import { DialogPane } from 'sql/workbench/services/dialog/browser/dialogPane';
|
import { DialogPane } from 'sql/workbench/services/dialog/browser/dialogPane';
|
||||||
import { Event, Emitter } from 'vs/base/common/event';
|
import { Event, Emitter } from 'vs/base/common/event';
|
||||||
@@ -50,6 +50,7 @@ export class DialogContainer implements AfterViewInit {
|
|||||||
@ViewChild(ModelViewContent) private _modelViewContent: ModelViewContent;
|
@ViewChild(ModelViewContent) private _modelViewContent: ModelViewContent;
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(forwardRef(() => ElementRef)) private _el: ElementRef,
|
@Inject(forwardRef(() => ElementRef)) private _el: ElementRef,
|
||||||
|
@Inject(forwardRef(() => ChangeDetectorRef)) private _changeRef: ChangeDetectorRef,
|
||||||
@Inject(IBootstrapParams) private _params: DialogComponentParams) {
|
@Inject(IBootstrapParams) private _params: DialogComponentParams) {
|
||||||
this.modelViewId = this._params.modelViewId;
|
this.modelViewId = this._params.modelViewId;
|
||||||
this._params.onLayoutRequested(layoutParams => {
|
this._params.onLayoutRequested(layoutParams => {
|
||||||
@@ -73,5 +74,6 @@ export class DialogContainer implements AfterViewInit {
|
|||||||
|
|
||||||
public layout(): void {
|
public layout(): void {
|
||||||
this._modelViewContent.layout();
|
this._modelViewContent.layout();
|
||||||
|
this._changeRef.detectChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ export class WizardModal extends Modal {
|
|||||||
this._dialogPanes.forEach((dialogPane, page) => {
|
this._dialogPanes.forEach((dialogPane, page) => {
|
||||||
if (page === pageToShow) {
|
if (page === pageToShow) {
|
||||||
dialogPaneToShow = dialogPane;
|
dialogPaneToShow = dialogPane;
|
||||||
|
dialogPane.layout(true);
|
||||||
dialogPane.show(focus);
|
dialogPane.show(focus);
|
||||||
} else {
|
} else {
|
||||||
dialogPane.hide();
|
dialogPane.hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user