mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
113904: Fixed the lint and import problems
This commit is contained in:
@@ -181,15 +181,6 @@ export class ProcessFormComponent implements OnInit {
|
||||
updateScript($event: Script) {
|
||||
this.selectedScript = $event;
|
||||
this.parameters = undefined;
|
||||
this.updateName();
|
||||
}
|
||||
|
||||
updateName(): void {
|
||||
if (isEmpty(this.customName)) {
|
||||
this.processName = this.generatedProcessName;
|
||||
} else {
|
||||
this.processName = this.customName;
|
||||
}
|
||||
}
|
||||
|
||||
get generatedProcessName() {
|
||||
|
@@ -10,7 +10,10 @@ import {
|
||||
NgbCollapse,
|
||||
NgbModal,
|
||||
} from '@ng-bootstrap/ng-bootstrap';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import {
|
||||
TranslateModule,
|
||||
TranslateService,
|
||||
} from '@ngx-translate/core';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { take } from 'rxjs/operators';
|
||||
|
||||
@@ -18,16 +21,6 @@ import { AuthService } from '../../../core/auth/auth.service';
|
||||
import { ProcessDataService } from '../../../core/data/processes/process-data.service';
|
||||
import { EPersonDataService } from '../../../core/eperson/eperson-data.service';
|
||||
import { EPerson } from '../../../core/eperson/models/eperson.model';
|
||||
import { ProcessBulkDeleteService } from '../process-bulk-delete.service';
|
||||
import { ProcessStatus } from '../../processes/process-status.model';
|
||||
import { createSuccessfulRemoteDataObject$ } from '../../../shared/remote-data.utils';
|
||||
import { createPaginatedList } from '../../../shared/testing/utils.test';
|
||||
import { PaginationServiceStub } from '../../../shared/testing/pagination-service.stub';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { NgbModal, NgbCollapse } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { VarDirective } from '../../../shared/utils/var.directive';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { PaginationService } from '../../../core/pagination/pagination.service';
|
||||
import { RouteService } from '../../../core/services/route.service';
|
||||
import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component';
|
||||
|
@@ -18,7 +18,10 @@ import {
|
||||
RouterLink,
|
||||
} from '@angular/router';
|
||||
import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import {
|
||||
TranslateModule,
|
||||
TranslateService,
|
||||
} from '@ngx-translate/core';
|
||||
import {
|
||||
BehaviorSubject,
|
||||
from as observableFrom,
|
||||
@@ -38,10 +41,6 @@ import { PaginationService } from 'src/app/core/pagination/pagination.service';
|
||||
import { AuthService } from '../../../core/auth/auth.service';
|
||||
import { DSONameService } from '../../../core/breadcrumbs/dso-name.service';
|
||||
import { FindListOptions } from '../../../core/data/find-list-options.model';
|
||||
import { Component, Input, OnInit, Inject, PLATFORM_ID, OnDestroy } from '@angular/core';
|
||||
import { ProcessStatus } from '../../processes/process-status.model';
|
||||
import { Observable, mergeMap, from as observableFrom, BehaviorSubject, Subscription } from 'rxjs';
|
||||
import { RemoteData } from '../../../core/data/remote-data';
|
||||
import { PaginatedList } from '../../../core/data/paginated-list.model';
|
||||
import { RemoteData } from '../../../core/data/remote-data';
|
||||
import { EPersonDataService } from '../../../core/eperson/eperson-data.service';
|
||||
@@ -50,10 +49,12 @@ import { RouteService } from '../../../core/services/route.service';
|
||||
import { redirectOn4xx } from '../../../core/shared/authorized.operators';
|
||||
import {
|
||||
getAllCompletedRemoteData,
|
||||
getFirstSucceededRemoteDataPayload,
|
||||
getAllCompletedRemoteData, getFirstCompletedRemoteData
|
||||
getFirstCompletedRemoteData,
|
||||
} from '../../../core/shared/operators';
|
||||
import { hasValue } from '../../../shared/empty.util';
|
||||
import {
|
||||
hasValue,
|
||||
isNotEmpty,
|
||||
} from '../../../shared/empty.util';
|
||||
import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component';
|
||||
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
|
||||
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
|
||||
@@ -65,17 +66,6 @@ import {
|
||||
ProcessOverviewService,
|
||||
ProcessSortField,
|
||||
} from '../process-overview.service';
|
||||
import { map, switchMap, toArray, take, filter } from 'rxjs/operators';
|
||||
import { EPerson } from '../../../core/eperson/models/eperson.model';
|
||||
import { PaginationService } from 'src/app/core/pagination/pagination.service';
|
||||
import { FindListOptions } from '../../../core/data/find-list-options.model';
|
||||
import { redirectOn4xx } from '../../../core/shared/authorized.operators';
|
||||
import { Router } from '@angular/router';
|
||||
import { AuthService } from '../../../core/auth/auth.service';
|
||||
import { isPlatformBrowser } from '@angular/common';
|
||||
import { RouteService } from '../../../core/services/route.service';
|
||||
import { hasValue, isNotEmpty } from '../../../shared/empty.util';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
|
||||
const NEW_PROCESS_PARAM = 'new_process_id';
|
||||
|
||||
|
Reference in New Issue
Block a user