mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
111103: Added SearchComponent to custom theme in order to easily theme it
This commit is contained in:
13
src/themes/custom/app/shared/search/search.component.ts
Normal file
13
src/themes/custom/app/shared/search/search.component.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
import { pushInOut } from '../../../../../app/shared/animations/push';
|
||||
import { SearchComponent as BaseComponent } from '../../../../../app/shared/search/search.component';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-search',
|
||||
styleUrls: ['./search.component.scss'],
|
||||
templateUrl: './search.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
animations: [pushInOut],
|
||||
})
|
||||
export class SearchComponent extends BaseComponent {
|
||||
}
|
@@ -156,6 +156,7 @@ import { ItemStatusComponent } from './app/item-page/edit-item-page/item-status/
|
||||
import { EditBitstreamPageComponent } from './app/bitstream-page/edit-bitstream-page/edit-bitstream-page.component';
|
||||
import { FormModule } from '../../app/shared/form/form.module';
|
||||
import { RequestCopyModule } from 'src/app/request-copy/request-copy.module';
|
||||
import { SearchComponent } from './app/shared/search/search.component';
|
||||
|
||||
const DECLARATIONS = [
|
||||
FileSectionComponent,
|
||||
@@ -239,6 +240,7 @@ const DECLARATIONS = [
|
||||
SubmissionSectionUploadFileComponent,
|
||||
ItemStatusComponent,
|
||||
EditBitstreamPageComponent,
|
||||
SearchComponent,
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
Reference in New Issue
Block a user