Skip to content

Commit f5316b5

Browse files
committed
Made community-list-element.component and collection-list-element.component themeable.
1 parent 48c3fd2 commit f5316b5

7 files changed

Lines changed: 57 additions & 0 deletions

File tree

src/themes/custom/app/shared/object-list/collection-list-element/collection-list-element.component.html

Whitespace-only changes.

src/themes/custom/app/shared/object-list/collection-list-element/collection-list-element.component.scss

Whitespace-only changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {Component} from '@angular/core';
2+
3+
import {Collection} from '../../../../../../app/core/shared/collection.model';
4+
import {
5+
CollectionListElementComponent as BaseComponent
6+
} from '../../../../../../app/shared/object-list/collection-list-element/collection-list-element.component';
7+
import {ViewMode} from '../../../../../../app/core/shared/view-mode.model';
8+
import {
9+
listableObjectComponent
10+
} from '../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
11+
import {Context} from '../../../../../../app/core/shared/context.model';
12+
13+
@listableObjectComponent(Collection, ViewMode.ListElement, Context.Any, 'custom')
14+
15+
@Component({
16+
selector: 'ds-collection-list-element',
17+
// styleUrls: ['./collection-list-element.component.scss'],
18+
styleUrls: ['../../../../../../app/shared/object-list/collection-list-element/collection-list-element.component.scss'],
19+
// templateUrl: './collection-list-element.component.html'
20+
templateUrl: '../../../../../../app/shared/object-list/collection-list-element/collection-list-element.component.html'
21+
})
22+
/**
23+
* Component representing list element for a collection
24+
*/
25+
export class CollectionListElementComponent extends BaseComponent {}
26+
27+

src/themes/custom/app/shared/object-list/community-list-element/community-list-element.component.html

Whitespace-only changes.

src/themes/custom/app/shared/object-list/community-list-element/community-list-element.component.scss

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import {Component} from '@angular/core';
2+
3+
import { Community } from '../../../../../../app/core/shared/community.model';
4+
import {
5+
CommunityListElementComponent as BaseComponent
6+
} from '../../../../../../app/shared/object-list/community-list-element/community-list-element.component';
7+
import { ViewMode } from '../../../../../../app/core/shared/view-mode.model';
8+
import { listableObjectComponent } from '../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
9+
import {Context} from '../../../../../../app/core/shared/context.model';
10+
11+
@listableObjectComponent(Community, ViewMode.ListElement, Context.Any, 'custom')
12+
13+
@Component({
14+
selector: 'ds-community-list-element',
15+
// styleUrls: ['./community-list-element.component.scss'],
16+
styleUrls: ['../../../../../../app/shared/object-list/community-list-element/community-list-element.component.scss'],
17+
// templateUrl: './community-list-element.component.html'
18+
templateUrl: '../../../../../../app/shared/object-list/community-list-element/community-list-element.component.html'
19+
})
20+
/**
21+
* Component representing a list element for a community
22+
*/
23+
export class CommunityListElementComponent extends BaseComponent {}

src/themes/custom/eager-theme.module.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ import {
4040
EditItemSelectorComponent
4141
} from './app/shared/dso-selector/modal-wrappers/edit-item-selector/edit-item-selector.component';
4242

43+
import { CommunityListElementComponent } from './app/shared/object-list/community-list-element/community-list-element.component';
44+
import { CollectionListElementComponent} from './app/shared/object-list/collection-list-element/collection-list-element.component';
45+
46+
4347
/**
4448
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
4549
* This will ensure that decorator gets picked up when the app loads
@@ -50,6 +54,9 @@ const ENTRY_COMPONENTS = [
5054
JournalVolumeComponent,
5155
PublicationComponent,
5256
UntypedItemComponent,
57+
58+
CommunityListElementComponent,
59+
CollectionListElementComponent,
5360
];
5461

5562
const DECLARATIONS = [

0 commit comments

Comments
 (0)