mirror of https://github.com/abpframework/abp.git
2 changed files with 22 additions and 0 deletions
@ -1,3 +1,4 @@ |
|||
export * from './list.token'; |
|||
export * from './lodaer-delay.token'; |
|||
export * from './manage-profile.token'; |
|||
export * from './options.token'; |
|||
|
|||
@ -0,0 +1,21 @@ |
|||
import { InjectionToken, inject } from '@angular/core'; |
|||
import { EnvironmentService } from '../services/environment.service'; |
|||
|
|||
export const NAVIGATE_TO_MANAGE_PROFILE = new InjectionToken<() => void>( |
|||
'NAVIGATE_TO_MANAGE_PROFILE', |
|||
{ |
|||
providedIn: 'root', |
|||
factory: () => { |
|||
const environment = inject(EnvironmentService); |
|||
|
|||
return () => { |
|||
window.open( |
|||
`${environment.getEnvironment().oAuthConfig.issuer}/Account/Manage?returnUrl=${ |
|||
window.location.href |
|||
}`,
|
|||
'_self', |
|||
); |
|||
}; |
|||
}, |
|||
}, |
|||
); |
|||
Loading…
Reference in new issue