mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 20:13:07 +00:00
feat: migrate everything to standalone and fix build errors
This commit is contained in:
@@ -7,8 +7,10 @@ import { getRemoteDataPayload, getFirstSucceededRemoteData } from '../../../core
|
||||
import { PaginatedList } from '../../../core/data/paginated-list.model';
|
||||
import { ActivatedRoute, Params, Router } from '@angular/router';
|
||||
import { hasNoValue, hasValue } from '../../../shared/empty.util';
|
||||
import { ControlContainer, NgForm } from '@angular/forms';
|
||||
import { ControlContainer, NgForm, FormsModule } from '@angular/forms';
|
||||
import { controlContainerFactory } from '../process-form.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { NgIf, NgFor, AsyncPipe } from '@angular/common';
|
||||
|
||||
const SCRIPT_QUERY_PARAMETER = 'script';
|
||||
|
||||
@@ -16,12 +18,14 @@ const SCRIPT_QUERY_PARAMETER = 'script';
|
||||
* Component used to select a script
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-scripts-select',
|
||||
templateUrl: './scripts-select.component.html',
|
||||
styleUrls: ['./scripts-select.component.scss'],
|
||||
viewProviders: [ { provide: ControlContainer,
|
||||
useFactory: controlContainerFactory,
|
||||
deps: [[new Optional(), NgForm]] } ]
|
||||
selector: 'ds-scripts-select',
|
||||
templateUrl: './scripts-select.component.html',
|
||||
styleUrls: ['./scripts-select.component.scss'],
|
||||
viewProviders: [{ provide: ControlContainer,
|
||||
useFactory: controlContainerFactory,
|
||||
deps: [[new Optional(), NgForm]] }],
|
||||
standalone: true,
|
||||
imports: [NgIf, FormsModule, NgFor, AsyncPipe, TranslateModule]
|
||||
})
|
||||
export class ScriptsSelectComponent implements OnInit, OnDestroy {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user