Browse Source

Merge pull request #14144 from vvlladd28/improvement/handleMobileNavigation/add-query-params

Add to mobile handler navigation action support queryParams
pull/14268/head
Igor Kulikov 9 months ago
committed by GitHub
parent
commit
a4ee0bd8d8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ui-ngx/src/app/core/guards/auth.guard.ts
  2. 4
      ui-ngx/src/app/core/services/mobile.service.ts

2
ui-ngx/src/app/core/guards/auth.guard.ts

@ -131,7 +131,7 @@ export class AuthGuard {
}
}
if (this.mobileService.isMobileApp() && !path.startsWith('dashboard.')) {
this.mobileService.handleMobileNavigation(path, params);
this.mobileService.handleMobileNavigation(path, params, lastChild.queryParams);
return of(false);
}
if (authState.authUser.authority === Authority.PRE_VERIFICATION_TOKEN) {

4
ui-ngx/src/app/core/services/mobile.service.ts

@ -106,9 +106,9 @@ export class MobileService {
}
}
public handleMobileNavigation(path?: string, params?: Params) {
public handleMobileNavigation(path?: string, params?: Params, queryParams?: Params) {
if (this.mobileApp) {
this.mobileChannel.callHandler(navigationHandler, path, params);
this.mobileChannel.callHandler(navigationHandler, path, params, queryParams);
}
}

Loading…
Cancel
Save