Browse Source

UI: Add to mobile handler navigation action support queryParams

pull/14144/head
Vladyslav_Prykhodko 10 months ago
parent
commit
9e70fba25a
  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

@ -121,7 +121,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