Skip to content

Commit

Permalink
Fix navigation from custom presentation page (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
vafeini authored Sep 30, 2024
1 parent 2b238c8 commit 3d2400c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const routes: Routes = [
{ path: 'home', loadComponent: () => import('./features/home/components/home/home.component').then(c => c.HomeComponent) },
{ path: 'custom-request',
loadChildren: () => import('@features/custom-presentation-request/custom-presentation-request.module').
then(m => m.CustomPresentationRequestModule )},
then(m => m.CustomPresentationRequestModule )},
{ path: 'selectable',
loadChildren: () => import('@features/selectable-presentation/selectable-presentation.module').
then(m => m.SelectablePresentationModule )
Expand All @@ -20,7 +20,7 @@ const routes: Routes = [
},
{ path: 'mdl-selectable',
loadChildren: () => import('@features/selectable-presentation/selectable-presentation.module').
then(m => m.SelectablePresentationModule ),
then(m => m.SelectablePresentationModule ),
},
{
path: 'get-wallet-code',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ const routes: Routes = [
{
path: 'create',
loadComponent:
() => import('@features/custom-presentation-request/components/custom-request-editor/custom-request-editor.component').then(c => c.CustomRequestEditorComponent)
() => import('@features/custom-presentation-request/components/custom-request-editor/custom-request-editor.component')
.then(c => c.CustomRequestEditorComponent)
},
{
path: 'invoke',
loadComponent: () => import('@features/invoke-wallet/components/invoker/invoker.component')
.then(c => c.InvokerComponent)
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class HomeComponent implements OnInit, OnDestroy {
let request = JSON.parse(this.requestCode) as TransactionInitializationRequest
this.verifierEndpointService.initializeTransaction(request, (data) => {
this.hideNextStep();
this.navigateService.navigateTo('/custom-request/verifiable');
this.navigateService.navigateTo('/custom-request/invoke');
this.changeDetectorRef.detectChanges();
});
} else {
Expand Down

0 comments on commit 3d2400c

Please sign in to comment.