forked from hazza/dspace-angular
lint fixes
This commit is contained in:
@@ -67,8 +67,8 @@ export class MetadataImportPageComponent implements OnInit {
|
||||
);
|
||||
this.uploaderId = 'ds-drag-and-drop-uploader' + uniqueId();
|
||||
this.isOverDocumentDropZone = observableOf(false);
|
||||
window.addEventListener('drop', e => {
|
||||
e && e.preventDefault();
|
||||
window.addEventListener('drop', (e: DragEvent) => {
|
||||
return e && e.preventDefault();
|
||||
}, false);
|
||||
this.uploader = new FileUploader({
|
||||
// required, but using onFileDrop, not uploader
|
||||
|
@@ -21,8 +21,8 @@ import { dataService } from '../../cache/builders/build-decorators';
|
||||
import { SCRIPT } from '../../../process-page/scripts/script.resource-type';
|
||||
import { hasValue } from '../../../shared/empty.util';
|
||||
|
||||
export const METADATA_IMPORT_SCRIPT_NAME: string = 'metadata-import';
|
||||
export const METADATA_EXPORT_SCRIPT_NAME: string = 'metadata-export';
|
||||
export const METADATA_IMPORT_SCRIPT_NAME = 'metadata-import';
|
||||
export const METADATA_EXPORT_SCRIPT_NAME = 'metadata-export';
|
||||
|
||||
@Injectable()
|
||||
@dataService(SCRIPT)
|
||||
|
@@ -99,7 +99,7 @@ export class DSOSelectorComponent implements OnInit {
|
||||
return this.searchService.search(
|
||||
new PaginatedSearchOptions({
|
||||
query: query,
|
||||
dsoType: this.type != DSpaceObjectType.DSPACEOBJECT ? this.type : null,
|
||||
dsoType: this.type !== DSpaceObjectType.DSPACEOBJECT ? this.type : null,
|
||||
pagination: this.defaultPagination
|
||||
})
|
||||
)
|
||||
|
@@ -43,7 +43,6 @@ export class MenuSectionComponent implements OnInit, OnDestroy{
|
||||
component: GenericConstructor<MenuSectionComponent>
|
||||
}>> = new BehaviorSubject(new Map());
|
||||
|
||||
|
||||
/**
|
||||
* Array to track all subscriptions and unsubscribe them onDestroy
|
||||
* @type {Array}
|
||||
|
Reference in New Issue
Block a user