mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
NG-16 - migration step 1
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { InjectionToken } from '@angular/core';
|
||||
import { CanActivate, CanActivateChild } from '@angular/router';
|
||||
import { CanActivateFn, CanActivateChildFn } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface ShellPreferencesService {
|
||||
@@ -33,6 +33,10 @@ export interface ShellAppService {
|
||||
|
||||
export const SHELL_APP_SERVICE = new InjectionToken<ShellAppService>('SHELL_APP_SERVICE');
|
||||
|
||||
export const SHELL_AUTH_TOKEN = new InjectionToken<CanActivate & CanActivateChild>('SHELL_AUTH_TOKEN');
|
||||
export const SHELL_AUTH_TOKEN = new InjectionToken<{
|
||||
canActivate: CanActivateFn;
|
||||
} & {
|
||||
canActivateChild: CanActivateChildFn;
|
||||
}>('SHELL_AUTH_TOKEN');
|
||||
export const SHELL_NAVBAR_MIN_WIDTH = new InjectionToken<number>('SHELL_NAVBAR_MIN_WIDTH');
|
||||
export const SHELL_NAVBAR_MAX_WIDTH = new InjectionToken<number>('SHELL_NAVBAR_MAX_WIDTH');
|
||||
|
Reference in New Issue
Block a user