mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
35 lines
915 B
TypeScript
35 lines
915 B
TypeScript
import { Component, ViewChild } from '@angular/core';
|
|
import {
|
|
AccessControlFormContainerComponent
|
|
} from '../../../shared/access-control-form-container/access-control-form-container.component';
|
|
|
|
@Component({
|
|
selector: 'ds-bulk-access-settings',
|
|
templateUrl: 'bulk-access-settings.component.html',
|
|
styleUrls: ['./bulk-access-settings.component.scss'],
|
|
exportAs: 'dsBulkSettings'
|
|
})
|
|
export class BulkAccessSettingsComponent {
|
|
|
|
/**
|
|
* The SectionsDirective reference
|
|
*/
|
|
@ViewChild('dsAccessControlForm') controlForm: AccessControlFormContainerComponent<any>;
|
|
|
|
/**
|
|
* Will be used from a parent component to read the value of the form
|
|
*/
|
|
getValue() {
|
|
return this.controlForm.getFormValue();
|
|
}
|
|
|
|
/**
|
|
* Reset the form to its initial state
|
|
* This will also reset the state of the child components (bitstream and item access)
|
|
*/
|
|
reset() {
|
|
this.controlForm.reset();
|
|
}
|
|
|
|
}
|