mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
113904: Fixed the lint and import problems
This commit is contained in:
@@ -100,11 +100,11 @@ export class ProcessFormComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const stringParameters: ProcessParameter[] = this.parameters.map((parameter: ProcessParameter) => {
|
const stringParameters: ProcessParameter[] = this.parameters.map((parameter: ProcessParameter) => {
|
||||||
return {
|
return {
|
||||||
name: parameter.name,
|
name: parameter.name,
|
||||||
value: this.checkValue(parameter),
|
value: this.checkValue(parameter),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
this.scriptService.invoke(this.selectedScript.id, stringParameters, this.files)
|
this.scriptService.invoke(this.selectedScript.id, stringParameters, this.files)
|
||||||
.pipe(getFirstCompletedRemoteData())
|
.pipe(getFirstCompletedRemoteData())
|
||||||
@@ -181,15 +181,6 @@ export class ProcessFormComponent implements OnInit {
|
|||||||
updateScript($event: Script) {
|
updateScript($event: Script) {
|
||||||
this.selectedScript = $event;
|
this.selectedScript = $event;
|
||||||
this.parameters = undefined;
|
this.parameters = undefined;
|
||||||
this.updateName();
|
|
||||||
}
|
|
||||||
|
|
||||||
updateName(): void {
|
|
||||||
if (isEmpty(this.customName)) {
|
|
||||||
this.processName = this.generatedProcessName;
|
|
||||||
} else {
|
|
||||||
this.processName = this.customName;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get generatedProcessName() {
|
get generatedProcessName() {
|
||||||
|
@@ -10,7 +10,10 @@ import {
|
|||||||
NgbCollapse,
|
NgbCollapse,
|
||||||
NgbModal,
|
NgbModal,
|
||||||
} from '@ng-bootstrap/ng-bootstrap';
|
} from '@ng-bootstrap/ng-bootstrap';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import {
|
||||||
|
TranslateModule,
|
||||||
|
TranslateService,
|
||||||
|
} from '@ngx-translate/core';
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
import { take } from 'rxjs/operators';
|
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 { ProcessDataService } from '../../../core/data/processes/process-data.service';
|
||||||
import { EPersonDataService } from '../../../core/eperson/eperson-data.service';
|
import { EPersonDataService } from '../../../core/eperson/eperson-data.service';
|
||||||
import { EPerson } from '../../../core/eperson/models/eperson.model';
|
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 { PaginationService } from '../../../core/pagination/pagination.service';
|
||||||
import { RouteService } from '../../../core/services/route.service';
|
import { RouteService } from '../../../core/services/route.service';
|
||||||
import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component';
|
import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component';
|
||||||
|
@@ -18,7 +18,10 @@ import {
|
|||||||
RouterLink,
|
RouterLink,
|
||||||
} from '@angular/router';
|
} from '@angular/router';
|
||||||
import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';
|
import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import {
|
||||||
|
TranslateModule,
|
||||||
|
TranslateService,
|
||||||
|
} from '@ngx-translate/core';
|
||||||
import {
|
import {
|
||||||
BehaviorSubject,
|
BehaviorSubject,
|
||||||
from as observableFrom,
|
from as observableFrom,
|
||||||
@@ -38,10 +41,6 @@ import { PaginationService } from 'src/app/core/pagination/pagination.service';
|
|||||||
import { AuthService } from '../../../core/auth/auth.service';
|
import { AuthService } from '../../../core/auth/auth.service';
|
||||||
import { DSONameService } from '../../../core/breadcrumbs/dso-name.service';
|
import { DSONameService } from '../../../core/breadcrumbs/dso-name.service';
|
||||||
import { FindListOptions } from '../../../core/data/find-list-options.model';
|
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 { PaginatedList } from '../../../core/data/paginated-list.model';
|
||||||
import { RemoteData } from '../../../core/data/remote-data';
|
import { RemoteData } from '../../../core/data/remote-data';
|
||||||
import { EPersonDataService } from '../../../core/eperson/eperson-data.service';
|
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 { redirectOn4xx } from '../../../core/shared/authorized.operators';
|
||||||
import {
|
import {
|
||||||
getAllCompletedRemoteData,
|
getAllCompletedRemoteData,
|
||||||
getFirstSucceededRemoteDataPayload,
|
getFirstCompletedRemoteData,
|
||||||
getAllCompletedRemoteData, getFirstCompletedRemoteData
|
|
||||||
} from '../../../core/shared/operators';
|
} 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 { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component';
|
||||||
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
|
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
|
||||||
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
|
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
|
||||||
@@ -65,17 +66,6 @@ import {
|
|||||||
ProcessOverviewService,
|
ProcessOverviewService,
|
||||||
ProcessSortField,
|
ProcessSortField,
|
||||||
} from '../process-overview.service';
|
} 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';
|
const NEW_PROCESS_PARAM = 'new_process_id';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user