Changeset 68a1d2f for src/Clients/Angular/finki-chattery/src/app/core
- Timestamp:
- 10/21/21 21:45:51 (3 years ago)
- Branches:
- dev
- Children:
- 2b66157
- Parents:
- eb21f00
- Location:
- src/Clients/Angular/finki-chattery/src/app/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clients/Angular/finki-chattery/src/app/core/core.module.ts
reb21f00 r68a1d2f 11 11 import { GUARDS } from './guards/guards'; 12 12 import { LoaderInterceptor } from './interceptors/loader.interceptor'; 13 import { SERVICES } from './services/services';14 13 import { reducers } from './state'; 15 14 import { TokenInterceptor } from './interceptors/token.interceptor'; … … 21 20 declarations: [COMPONENTS], 22 21 providers: [ 23 SERVICES,24 22 GUARDS, 25 23 { provide: HTTP_INTERCEPTORS, useClass: LoaderInterceptor, multi: true }, … … 39 37 EffectsModule.forRoot([QuestionEffects, CategoriesEffects]) 40 38 ], 41 exports: [HttpClientModule, COMPONENTS]39 exports: [HttpClientModule, SharedAppModule, COMPONENTS] 42 40 }) 43 41 export class CoreModule {} -
src/Clients/Angular/finki-chattery/src/app/core/services/redirect.service.ts
reb21f00 r68a1d2f 20 20 switch (currentUser.userType) { 21 21 case ApplicationUserType.Student: 22 this.router.navigateByUrl(`questioning/preview`); 23 22 24 break; 23 25 case ApplicationUserType.Teacher: -
src/Clients/Angular/finki-chattery/src/app/core/services/services.ts
reb21f00 r68a1d2f 1 export const SERVICES: any[] = []; -
src/Clients/Angular/finki-chattery/src/app/core/state/category-state/category.actions.ts
reb21f00 r68a1d2f 1 1 import { HttpErrorResponse } from '@angular/common/http'; 2 2 import { Action } from '@ngrx/store'; 3 import { CategoryStateViewModel } from 'src/app/shared-app/models'; 3 4 import { CategoryStateResponse } from './category-state.models'; 4 5 … … 20 21 readonly type = CategoryActionTypes.GetCategoriesStateSuccess; 21 22 22 constructor(public payload: CategoryState Response[]) {}23 constructor(public payload: CategoryStateViewModel[]) {} 23 24 } 24 25
Note:
See TracChangeset
for help on using the changeset viewer.