From 661118a1743febfa2c44e41739fb6f1724860447 Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Thu, 26 Dec 2019 17:32:01 +0300 Subject: [PATCH] feat(identity): make roles and users component replaceable #2404 --- .../identity/src/lib/identity-routing.module.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/npm/ng-packs/packages/identity/src/lib/identity-routing.module.ts b/npm/ng-packs/packages/identity/src/lib/identity-routing.module.ts index e012a21acf..eff6a7ce98 100644 --- a/npm/ng-packs/packages/identity/src/lib/identity-routing.module.ts +++ b/npm/ng-packs/packages/identity/src/lib/identity-routing.module.ts @@ -2,9 +2,9 @@ import { AuthGuard, DynamicLayoutComponent, PermissionGuard, - ABP, CoreModule, ReplaceableRouteContainerComponent, + ReplaceableComponents, } from '@abp/ng.core'; import { NgModule, Type } from '@angular/core'; import { RouterModule, Routes, Router, ActivatedRoute } from '@angular/router'; @@ -23,10 +23,10 @@ const routes: Routes = [ component: ReplaceableRouteContainerComponent, data: { requiredPolicy: 'AbpIdentity.Roles', - component: { + replaceableComponent: { key: 'Identity.RolesComponent', - default: RolesComponent, - } as ABP.ComponentData, + defaultComponent: RolesComponent, + } as ReplaceableComponents.RouteData, }, }, { @@ -34,10 +34,10 @@ const routes: Routes = [ component: ReplaceableRouteContainerComponent, data: { requiredPolicy: 'AbpIdentity.Users', - component: { + replaceableComponent: { key: 'Identity.UsersComponent', - default: UsersComponent, - } as ABP.ComponentData, + defaultComponent: UsersComponent, + } as ReplaceableComponents.RouteData, }, }, ],