Indigo.design - Dialog window navigation did not work.
jennifershih opened this issue · comments
I set up Dialog window, when I click logout, I expect it navigate to loginPage/login.
After code generation, when I run project, logout button didn't work.
<igx-dialog message="確定要登出?" leftButtonLabel="取消" rightButtonLabel="登出" [closeOnOutsideSelect]="true" [closeOnEscape]="true" (leftButtonSelect)="dialogWindow.toggle()" #dialogWindow class="dialog-window"><igx-dialog-title>登出</igx-dialog-title></igx-dialog
<igx-dialog message="確定要登出?" leftButtonLabel="取消" rightButtonLabel="登出" [closeOnOutsideSelect]="true" [closeOnEscape]="true" routerLink="/login-page/login" (leftButtonSelect)="dialogWindow.toggle()" #dialogWindow class="dialog-window"> <igx-dialog-title>登出</igx-dialog-title> </igx-dialog>
@wnvko @Lipata it looks like the problem comes when when the "Navigate to" action is set to e child view part of another master view, for example, I've created a new master view "loginPage" with a child view "login".
And then upon setting the "Navigate to" action, I've noticed that the code view panel is not showing router link input
<igx-dialog message="Are you sure you want to do this?" leftButtonLabel="login" rightButtonLabel="close" [closeOnOutsideSelect]="true" [closeOnEscape]="true" #dialogWindow class="dialog-window">
<igx-dialog-title>Confirmation</igx-dialog-title>
</igx-dialog>
If you set a "Navigate to" action to a child view part of the master view where the dialog is defined in, everything is working and generated well.
This is a scenario which we are not handling now. I marked this as a bug.
@jennifershih this should be fixed now.