Skip to content

Commit 2826ff5

Browse files
committed
[DURACOM-191] Fix missing import for ngIf and ngFor directive
1 parent dfad3f3 commit 2826ff5

15 files changed

Lines changed: 39 additions & 4 deletions

File tree

src/app/access-control/epeople-registry/eperson-form/eperson-form.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
AsyncPipe,
33
NgClass,
4+
NgFor,
45
NgIf,
56
} from '@angular/common';
67
import {
@@ -83,6 +84,7 @@ import { ValidateEmailNotTaken } from './validators/email-taken.validator';
8384
imports: [
8485
FormComponent,
8586
NgIf,
87+
NgFor,
8688
AsyncPipe,
8789
TranslateModule,
8890
NgClass,

src/app/admin/admin-ldn-services/ldn-services-directory/ldn-services-directory.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
AsyncPipe,
33
NgClass,
4+
NgFor,
45
NgIf,
56
} from '@angular/common';
67
import {
@@ -54,6 +55,7 @@ import { LdnService } from '../ldn-services-model/ldn-services.model';
5455
changeDetection: ChangeDetectionStrategy.Default,
5556
imports: [
5657
NgIf,
58+
NgFor,
5759
TranslateModule,
5860
AsyncPipe,
5961
PaginationComponent,

src/app/admin/admin-reports/filtered-items/filtered-items.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
AsyncPipe,
33
NgForOf,
4+
NgIf,
45
} from '@angular/common';
56
import {
67
Component,
@@ -59,6 +60,7 @@ import { QueryPredicate } from './query-predicate.model';
5960
NgbAccordionModule,
6061
TranslateModule,
6162
AsyncPipe,
63+
NgIf,
6264
NgForOf,
6365
FiltersComponent,
6466
],

src/app/forgot-password/forgot-password-form/forgot-password-form.component.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { AuthenticateAction } from '../../core/auth/auth.actions';
2424
import { CoreState } from '../../core/core-state.model';
2525
import { EPersonDataService } from '../../core/eperson/eperson-data.service';
2626
import { Registration } from '../../core/shared/registration.model';
27+
import { ProfilePageSecurityFormComponent } from '../../profile-page/profile-page-security-form/profile-page-security-form.component';
2728
import { NotificationsService } from '../../shared/notifications/notifications.service';
2829
import {
2930
createFailedRemoteDataObject$,
@@ -84,6 +85,8 @@ describe('ForgotPasswordFormComponent', () => {
8485
{ provide: NotificationsService, useValue: notificationsService },
8586
],
8687
schemas: [CUSTOM_ELEMENTS_SCHEMA],
88+
}).overrideComponent(ForgotPasswordFormComponent, {
89+
remove: { imports: [ ProfilePageSecurityFormComponent ] },
8790
}).compileComponents();
8891
}));
8992
beforeEach(() => {

src/app/notifications/suggestion-list-element/suggestion-evidences/suggestion-evidences.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { NgIf } from '@angular/common';
1+
import {
2+
NgFor,
3+
NgIf,
4+
} from '@angular/common';
25
import {
36
Component,
47
Input,
@@ -20,6 +23,7 @@ import { ObjectKeysPipe } from '../../../shared/utils/object-keys-pipe';
2023
imports: [
2124
TranslateModule,
2225
NgIf,
26+
NgFor,
2327
ObjectKeysPipe,
2428
],
2529
standalone: true,

src/app/notifications/suggestion-list-element/suggestion-list-element.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { NgIf } from '@angular/common';
12
import {
23
Component,
34
EventEmitter,
@@ -26,6 +27,7 @@ import { SuggestionEvidencesComponent } from './suggestion-evidences/suggestion-
2627
templateUrl: './suggestion-list-element.component.html',
2728
animations: [fadeIn],
2829
imports: [
30+
NgIf,
2931
TranslateModule,
3032
ItemSearchResultListElementComponent,
3133
SuggestionActionsComponent,

src/app/notifications/suggestion-targets/publication-claim/publication-claim.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
AsyncPipe,
3+
NgFor,
34
NgIf,
45
} from '@angular/common';
56
import {
@@ -44,6 +45,7 @@ import { SuggestionTargetsStateService } from '../suggestion-targets.state.servi
4445
TranslateModule,
4546
PaginationComponent,
4647
NgIf,
48+
NgFor,
4749
RouterLink,
4850
],
4951
standalone: true,

src/app/profile-page/profile-page-security-form/profile-page-security-form.component.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import { of as observableOf } from 'rxjs';
1313

1414
import { RestResponse } from '../../core/cache/response.models';
1515
import { EPersonDataService } from '../../core/eperson/eperson-data.service';
16+
import { AlertComponent } from '../../shared/alert/alert.component';
1617
import { FormBuilderService } from '../../shared/form/builder/form-builder.service';
18+
import { FormComponent } from '../../shared/form/form.component';
1719
import { NotificationsService } from '../../shared/notifications/notifications.service';
1820
import { VarDirective } from '../../shared/utils/var.directive';
1921
import { ProfilePageSecurityFormComponent } from './profile-page-security-form.component';
@@ -52,6 +54,8 @@ describe('ProfilePageSecurityFormComponent', () => {
5254
FormBuilderService,
5355
],
5456
schemas: [NO_ERRORS_SCHEMA],
57+
}).overrideComponent(ProfilePageSecurityFormComponent, {
58+
remove: { imports: [ FormComponent, AlertComponent ] },
5559
}).compileComponents();
5660
}));
5761

src/app/profile-page/profile-page-security-form/profile-page-security-form.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { NgIf } from '@angular/common';
12
import {
23
Component,
34
EventEmitter,
@@ -32,6 +33,7 @@ import { NotificationsService } from '../../shared/notifications/notifications.s
3233
selector: 'ds-profile-page-security-form',
3334
templateUrl: './profile-page-security-form.component.html',
3435
imports: [
36+
NgIf,
3537
FormComponent,
3638
AlertComponent,
3739
TranslateModule,

src/app/shared/menu/menu-item/external-link-menu-item.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Inject,
55
OnInit,
66
} from '@angular/core';
7+
import { RouterLinkActive } from '@angular/router';
78
import { TranslateModule } from '@ngx-translate/core';
89

910
import { isNotEmpty } from '../../empty.util';
@@ -17,7 +18,7 @@ import { ExternalLinkMenuItemModel } from './models/external-link.model';
1718
styleUrls: ['./menu-item.component.scss'],
1819
templateUrl: './external-link-menu-item.component.html',
1920
standalone: true,
20-
imports: [NgClass, TranslateModule],
21+
imports: [NgClass, TranslateModule, RouterLinkActive],
2122
})
2223
export class ExternalLinkMenuItemComponent implements OnInit {
2324
item: ExternalLinkMenuItemModel;

0 commit comments

Comments
 (0)