Skip to content

Commit d1b9d4f

Browse files
[DURACOM-307] remove NgIf and NgFor imports
1 parent c4696c9 commit d1b9d4f

66 files changed

Lines changed: 71 additions & 241 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/app/community-page/community-form/community-form.component.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
AsyncPipe,
3-
NgClass,
4-
NgIf,
5-
} from '@angular/common';
1+
import { AsyncPipe } from '@angular/common';
62
import {
73
Component,
84
Input,
@@ -49,8 +45,6 @@ import { VarDirective } from '../../shared/utils/var.directive';
4945
UploaderComponent,
5046
AsyncPipe,
5147
ComcolPageLogoComponent,
52-
NgIf,
53-
NgClass,
5448
VarDirective,
5549
],
5650
})

src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-issue/journal-issue-sidebar-search-list-element.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
AsyncPipe,
33
NgClass,
4-
NgIf,
54
} from '@angular/common';
65
import { Component } from '@angular/core';
76
import { TranslateModule } from '@ngx-translate/core';
@@ -23,7 +22,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun
2322
selector: 'ds-journal-issue-sidebar-search-list-element',
2423
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
2524
standalone: true,
26-
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule],
25+
imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule],
2726
})
2827
/**
2928
* Component displaying a list element for a {@link ItemSearchResult} of type "JournalIssue" within the context of

src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-volume/journal-volume-sidebar-search-list-element.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
AsyncPipe,
33
NgClass,
4-
NgIf,
54
} from '@angular/common';
65
import { Component } from '@angular/core';
76
import { TranslateModule } from '@ngx-translate/core';
@@ -23,7 +22,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun
2322
selector: 'ds-journal-volume-sidebar-search-list-element',
2423
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
2524
standalone: true,
26-
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule],
25+
imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule],
2726
})
2827
/**
2928
* Component displaying a list element for a {@link ItemSearchResult} of type "JournalVolume" within the context of

src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal/journal-sidebar-search-list-element.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
AsyncPipe,
33
NgClass,
4-
NgIf,
54
} from '@angular/common';
65
import { Component } from '@angular/core';
76
import { TranslateModule } from '@ngx-translate/core';
@@ -23,7 +22,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun
2322
selector: 'ds-journal-sidebar-search-list-element',
2423
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
2524
standalone: true,
26-
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule],
25+
imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule],
2726
})
2827
/**
2928
* Component displaying a list element for a {@link ItemSearchResult} of type "Journal" within the context of

src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/org-unit/org-unit-sidebar-search-list-element.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
AsyncPipe,
33
NgClass,
4-
NgIf,
54
} from '@angular/common';
65
import { Component } from '@angular/core';
76
import { TranslateModule } from '@ngx-translate/core';
@@ -22,7 +21,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun
2221
selector: 'ds-org-unit-sidebar-search-list-element',
2322
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
2423
standalone: true,
25-
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule],
24+
imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule],
2625
})
2726
/**
2827
* Component displaying a list element for a {@link ItemSearchResult} of type "OrgUnit" within the context of

src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/person/person-sidebar-search-list-element.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
AsyncPipe,
33
NgClass,
4-
NgIf,
54
} from '@angular/common';
65
import { Component } from '@angular/core';
76
import {
@@ -29,7 +28,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun
2928
selector: 'ds-person-sidebar-search-list-element',
3029
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
3130
standalone: true,
32-
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule],
31+
imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule],
3332
})
3433
/**
3534
* Component displaying a list element for a {@link ItemSearchResult} of type "Person" within the context of

src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/project/project-sidebar-search-list-element.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
AsyncPipe,
33
NgClass,
4-
NgIf,
54
} from '@angular/common';
65
import { Component } from '@angular/core';
76
import { TranslateModule } from '@ngx-translate/core';
@@ -22,7 +21,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun
2221
selector: 'ds-project-sidebar-search-list-element',
2322
templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html',
2423
standalone: true,
25-
imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule],
24+
imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule],
2625
})
2726
/**
2827
* Component displaying a list element for a {@link ItemSearchResult} of type "Project" within the context of

src/app/search-page/configuration-search-page.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
AsyncPipe,
3-
NgIf,
43
NgTemplateOutlet,
54
} from '@angular/common';
65
import {
@@ -47,7 +46,7 @@ import { ViewModeSwitchComponent } from '../shared/view-mode-switch/view-mode-sw
4746
},
4847
],
4948
standalone: true,
50-
imports: [NgIf, NgTemplateOutlet, PageWithSidebarComponent, ViewModeSwitchComponent, ThemedSearchResultsComponent, ThemedSearchSidebarComponent, ThemedSearchFormComponent, SearchLabelsComponent, AsyncPipe, TranslateModule],
49+
imports: [NgTemplateOutlet, PageWithSidebarComponent, ViewModeSwitchComponent, ThemedSearchResultsComponent, ThemedSearchSidebarComponent, ThemedSearchFormComponent, SearchLabelsComponent, AsyncPipe, TranslateModule],
5150
})
5251

5352
export class ConfigurationSearchPageComponent extends SearchComponent {

src/app/shared/dso-selector/dso-selector/authorized-collection-selector/authorized-collection-selector.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import {
22
AsyncPipe,
33
NgClass,
4-
NgFor,
5-
NgIf,
64
} from '@angular/common';
75
import {
86
Component,
@@ -47,7 +45,7 @@ import { DSOSelectorComponent } from '../dso-selector.component';
4745
styleUrls: ['../dso-selector.component.scss'],
4846
templateUrl: '../dso-selector.component.html',
4947
standalone: true,
50-
imports: [FormsModule, ReactiveFormsModule, InfiniteScrollModule, NgIf, NgFor, HoverClassDirective, NgClass, ListableObjectComponentLoaderComponent, ThemedLoadingComponent, AsyncPipe, TranslateModule],
48+
imports: [FormsModule, ReactiveFormsModule, InfiniteScrollModule, HoverClassDirective, NgClass, ListableObjectComponentLoaderComponent, ThemedLoadingComponent, AsyncPipe, TranslateModule],
5149
})
5250
/**
5351
* Component rendering a list of collections to select from

src/app/shared/dso-selector/modal-wrappers/edit-collection-selector/edit-collection-selector.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { NgIf } from '@angular/common';
21
import {
32
Component,
43
OnInit,
@@ -33,7 +32,7 @@ import {
3332
selector: 'ds-base-edit-collection-selector',
3433
templateUrl: '../dso-selector-modal-wrapper.component.html',
3534
standalone: true,
36-
imports: [NgIf, DSOSelectorComponent, TranslateModule],
35+
imports: [ DSOSelectorComponent, TranslateModule],
3736
})
3837
export class EditCollectionSelectorComponent extends DSOSelectorModalWrapperComponent implements OnInit {
3938
objectType = DSpaceObjectType.COLLECTION;

0 commit comments

Comments
 (0)