Skip to content

Commit 3568acc

Browse files
authored
Merge pull request #2984 from atmire/w2p-114732_CustomThemeNoLongerWorks
Synced the imports of the custom theme with the imports of the base component so custom theme works again
2 parents 288a918 + a1fd59f commit 3568acc

File tree

22 files changed

+72
-67
lines changed

22 files changed

+72
-67
lines changed

src/themes/custom/app/browse-by/browse-by-taxonomy/browse-by-taxonomy.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
NgIf,
44
} from '@angular/common';
55
import { Component } from '@angular/core';
6-
import { RouterModule } from '@angular/router';
6+
import { RouterLink } from '@angular/router';
77
import { TranslateModule } from '@ngx-translate/core';
88

99
import { BrowseByTaxonomyComponent as BaseComponent } from '../../../../../app/browse-by/browse-by-taxonomy/browse-by-taxonomy.component';
@@ -32,16 +32,16 @@ import { VarDirective } from '../../../../../app/shared/utils/var.directive';
3232
ComcolPageHeaderComponent,
3333
ComcolPageLogoComponent,
3434
NgIf,
35-
RouterModule,
3635
ThemedComcolPageHandleComponent,
3736
ComcolPageContentComponent,
3837
DsoEditMenuComponent,
3938
ThemedComcolPageBrowseByComponent,
40-
VocabularyTreeviewComponent,
4139
BrowseByComponent,
4240
TranslateModule,
4341
ThemedLoadingComponent,
4442
ThemedBrowseByComponent,
43+
VocabularyTreeviewComponent,
44+
RouterLink,
4545
],
4646
})
4747
export class BrowseByTaxonomyComponent extends BaseComponent {

src/themes/custom/app/collection-page/collection-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import { ViewTrackerComponent } from '../../../../app/statistics/angulartics/dsp
4343
ComcolPageContentComponent,
4444
ErrorComponent,
4545
NgIf,
46-
RouterOutlet,
4746
ThemedLoadingComponent,
4847
TranslateModule,
4948
ViewTrackerComponent,
@@ -55,6 +54,7 @@ import { ViewTrackerComponent } from '../../../../app/statistics/angulartics/dsp
5554
DsoEditMenuComponent,
5655
ThemedComcolPageBrowseByComponent,
5756
ObjectCollectionComponent,
57+
RouterOutlet,
5858
],
5959
})
6060
/**

src/themes/custom/app/collection-page/edit-item-template-page/edit-item-template-page.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { ThemedDsoEditMetadataComponent } from '../../../../../app/dso-shared/ds
1111
import { AlertComponent } from '../../../../../app/shared/alert/alert.component';
1212
import { ThemedLoadingComponent } from '../../../../../app/shared/loading/themed-loading.component';
1313
import { VarDirective } from '../../../../../app/shared/utils/var.directive';
14+
import { DsoEditMetadataComponent } from '../../dso-shared/dso-edit-metadata/dso-edit-metadata.component';
1415

1516
@Component({
1617
selector: 'ds-edit-item-template-page',
@@ -20,6 +21,7 @@ import { VarDirective } from '../../../../../app/shared/utils/var.directive';
2021
standalone: true,
2122
imports: [
2223
ThemedDsoEditMetadataComponent,
24+
DsoEditMetadataComponent,
2325
RouterLink,
2426
AsyncPipe,
2527
VarDirective,

src/themes/custom/app/community-page/community-page.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import {
66
ChangeDetectionStrategy,
77
Component,
88
} from '@angular/core';
9-
import { RouterModule } from '@angular/router';
9+
import {
10+
RouterModule,
11+
RouterOutlet,
12+
} from '@angular/router';
1013
import { TranslateModule } from '@ngx-translate/core';
1114

1215
import { CommunityPageComponent as BaseComponent } from '../../../../app/community-page/community-page.component';
@@ -50,6 +53,7 @@ import { ViewTrackerComponent } from '../../../../app/statistics/angulartics/dsp
5053
AsyncPipe,
5154
ViewTrackerComponent,
5255
VarDirective,
56+
RouterOutlet,
5357
RouterModule,
5458
],
5559
})

src/themes/custom/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
1+
import {
2+
AsyncPipe,
3+
NgIf,
4+
} from '@angular/common';
15
import { Component } from '@angular/core';
6+
import { TranslateModule } from '@ngx-translate/core';
27

38
import { CommunityPageSubCollectionListComponent as BaseComponent } from '../../../../../../../app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component';
9+
import { ErrorComponent } from '../../../../../../../app/shared/error/error.component';
10+
import { ThemedLoadingComponent } from '../../../../../../../app/shared/loading/themed-loading.component';
11+
import { ObjectCollectionComponent } from '../../../../../../../app/shared/object-collection/object-collection.component';
12+
import { VarDirective } from '../../../../../../../app/shared/utils/var.directive';
413

514
@Component({
615
selector: 'ds-community-page-sub-collection-list',
716
// styleUrls: ['./community-page-sub-collection-list.component.scss'],
817
styleUrls: ['../../../../../app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.scss'],
918
// templateUrl: './community-page-sub-collection-list.component.html',
1019
templateUrl: '../../../../../app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.html',
20+
imports: [
21+
ObjectCollectionComponent,
22+
ErrorComponent,
23+
ThemedLoadingComponent,
24+
NgIf,
25+
TranslateModule,
26+
AsyncPipe,
27+
VarDirective,
28+
],
1129
standalone: true,
1230
})
1331
export class CommunityPageSubCollectionListComponent extends BaseComponent {

src/themes/custom/app/forgot-password/forgot-password-email/forgot-email.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import { RegisterEmailFormComponent } from '../../../../../app/register-email-fo
1212
templateUrl: '../../../../../app/forgot-password/forgot-password-email/forgot-email.component.html',
1313
standalone: true,
1414
imports: [
15-
RegisterEmailFormComponent,
16-
ThemedRegisterEmailFormComponent,
15+
RegisterEmailFormComponent, ThemedRegisterEmailFormComponent,
1716
],
1817
})
1918
/**

src/themes/custom/app/forgot-password/forgot-password-form/forgot-password-form.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { BrowserOnlyPipe } from '../../../../../app/shared/utils/browser-only.pi
1818
standalone: true,
1919
imports: [
2020
TranslateModule,
21-
ProfilePageSecurityFormComponent,
2221
BrowserOnlyPipe,
22+
ProfilePageSecurityFormComponent,
2323
AsyncPipe,
2424
NgIf,
2525
],

src/themes/custom/app/header/header.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import {
2+
AsyncPipe,
3+
NgIf,
4+
} from '@angular/common';
15
import { Component } from '@angular/core';
26
import { RouterLink } from '@angular/router';
37
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
@@ -21,7 +25,7 @@ import { LangSwitchComponent } from '../../../../app/shared/lang-switch/lang-swi
2125
// templateUrl: 'header.component.html',
2226
templateUrl: '../../../../app/header/header.component.html',
2327
standalone: true,
24-
imports: [RouterLink, ThemedLangSwitchComponent, NgbDropdownModule, ThemedSearchNavbarComponent, LangSwitchComponent, ContextHelpToggleComponent, ThemedAuthNavMenuComponent, ImpersonateNavbarComponent, TranslateModule],
28+
imports: [RouterLink, ThemedLangSwitchComponent, NgbDropdownModule, ThemedSearchNavbarComponent, LangSwitchComponent, ContextHelpToggleComponent, ThemedAuthNavMenuComponent, ImpersonateNavbarComponent, TranslateModule, AsyncPipe, NgIf],
2529
})
2630
export class HeaderComponent extends BaseComponent {
2731
}

src/themes/custom/app/home-page/home-page.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
AsyncPipe,
33
NgClass,
44
NgIf,
5+
NgTemplateOutlet,
56
} from '@angular/common';
67
import { Component } from '@angular/core';
78
import { TranslateModule } from '@ngx-translate/core';
@@ -25,7 +26,7 @@ import { ViewTrackerComponent } from '../../../../app/statistics/angulartics/dsp
2526
// templateUrl: './home-page.component.html'
2627
templateUrl: '../../../../app/home-page/home-page.component.html',
2728
standalone: true,
28-
imports: [ThemedHomeNewsComponent, NgIf, ViewTrackerComponent, ThemedSearchFormComponent, ThemedTopLevelCommunityListComponent, RecentItemListComponent, AsyncPipe, TranslateModule, NgClass, ConfigurationSearchPageComponent, SuggestionsPopupComponent, ThemedConfigurationSearchPageComponent, PageWithSidebarComponent, HomeCoarComponent],
29+
imports: [ThemedHomeNewsComponent, NgTemplateOutlet, NgIf, ViewTrackerComponent, ThemedSearchFormComponent, ThemedTopLevelCommunityListComponent, RecentItemListComponent, AsyncPipe, TranslateModule, NgClass, ConfigurationSearchPageComponent, SuggestionsPopupComponent, ThemedConfigurationSearchPageComponent, PageWithSidebarComponent, HomeCoarComponent],
2930
})
3031
export class HomePageComponent extends BaseComponent {
3132

src/themes/custom/app/item-page/simple/item-page.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ import { ViewTrackerComponent } from '../../../../../app/statistics/angulartics/
4444
ItemVersionsComponent,
4545
ErrorComponent,
4646
ThemedLoadingComponent,
47-
NotifyRequestsStatusComponent,
48-
QaEventNotificationComponent,
4947
TranslateModule,
5048
AsyncPipe,
5149
NgIf,
50+
NotifyRequestsStatusComponent,
51+
QaEventNotificationComponent,
5252
],
5353
})
5454
export class ItemPageComponent extends BaseComponent {

0 commit comments

Comments
 (0)