mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
|
|
import { take } from 'rxjs/operators';
|
|
import { Observable } from 'rxjs/Observable';
|
|
import { Item } from '../../../core/shared/item.model';
|
|
import { RemoteData } from '../../../core/data/remote-data';
|
|
import { PaginatedList } from '../../../core/data/paginated-list';
|
|
import { PaginationComponentOptions } from '../../pagination/pagination-component-options.model';
|
|
import { ObjectSelectService } from '../object-select.service';
|
|
import { ObjectSelectComponent } from '../object-select/object-select.component';
|
|
import { isNotEmpty } from '../../empty.util';
|
|
|
|
@Component({
|
|
selector: 'ds-item-select',
|
|
templateUrl: './item-select.component.html'
|
|
})
|
|
|
|
/**
|
|
* A component used to select items from a specific list and returning the UUIDs of the selected items
|
|
*/
|
|
export class ItemSelectComponent extends ObjectSelectComponent<Item> {
|
|
|
|
constructor(protected objectSelectService: ObjectSelectService) {
|
|
super(objectSelectService);
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
super.ngOnInit();
|
|
if (!isNotEmpty(this.confirmButton)) {
|
|
this.confirmButton = 'item.select.confirm';
|
|
}
|
|
}
|
|
|
|
}
|