IgniteUI / app-builder

App Builder™ is a cloud-based WYSIWYG drag & drop tool that helps teams design and build complete business apps 80% faster than before. It has an integrated design system – Indigo.Design – and packs real UI components for Angular, Blazor, and Web Components.

Home Page:https://www.appbuilder.dev/platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

1 screenshot-indigo design

<igx-dialog message="確定要登出?" leftButtonLabel="取消" rightButtonLabel="登出" [closeOnOutsideSelect]="true" [closeOnEscape]="true" (leftButtonSelect)="dialogWindow.toggle()" #dialogWindow class="dialog-window"><igx-dialog-title>登出</igx-dialog-title></igx-dialog
2 screenshot-gen_code

<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>
3 screenshot-run_project

@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".

image

And then upon setting the "Navigate to" action, I've noticed that the code view panel is not showing router link input

image

<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.