Skip to content

Commit 2d5d4a0

Browse files
author
Kuno Vercammen
committed
113904: Fixed the lint and import problems
1 parent f6bf757 commit 2d5d4a0

3 files changed

Lines changed: 18 additions & 44 deletions

File tree

src/app/process-page/form/process-form.component.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ export class ProcessFormComponent implements OnInit {
100100
}
101101

102102
const stringParameters: ProcessParameter[] = this.parameters.map((parameter: ProcessParameter) => {
103-
return {
104-
name: parameter.name,
105-
value: this.checkValue(parameter),
106-
};
107-
},
103+
return {
104+
name: parameter.name,
105+
value: this.checkValue(parameter),
106+
};
107+
},
108108
);
109109
this.scriptService.invoke(this.selectedScript.id, stringParameters, this.files)
110110
.pipe(getFirstCompletedRemoteData())
@@ -181,15 +181,6 @@ export class ProcessFormComponent implements OnInit {
181181
updateScript($event: Script) {
182182
this.selectedScript = $event;
183183
this.parameters = undefined;
184-
this.updateName();
185-
}
186-
187-
updateName(): void {
188-
if (isEmpty(this.customName)) {
189-
this.processName = this.generatedProcessName;
190-
} else {
191-
this.processName = this.customName;
192-
}
193184
}
194185

195186
get generatedProcessName() {

src/app/process-page/overview/table/process-overview-table.component.spec.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,17 @@ import {
1010
NgbCollapse,
1111
NgbModal,
1212
} from '@ng-bootstrap/ng-bootstrap';
13-
import { TranslateModule } from '@ngx-translate/core';
13+
import {
14+
TranslateModule,
15+
TranslateService,
16+
} from '@ngx-translate/core';
1417
import { BehaviorSubject } from 'rxjs';
1518
import { take } from 'rxjs/operators';
1619

1720
import { AuthService } from '../../../core/auth/auth.service';
1821
import { ProcessDataService } from '../../../core/data/processes/process-data.service';
1922
import { EPersonDataService } from '../../../core/eperson/eperson-data.service';
2023
import { EPerson } from '../../../core/eperson/models/eperson.model';
21-
import { ProcessBulkDeleteService } from '../process-bulk-delete.service';
22-
import { ProcessStatus } from '../../processes/process-status.model';
23-
import { createSuccessfulRemoteDataObject$ } from '../../../shared/remote-data.utils';
24-
import { createPaginatedList } from '../../../shared/testing/utils.test';
25-
import { PaginationServiceStub } from '../../../shared/testing/pagination-service.stub';
26-
import { BehaviorSubject } from 'rxjs';
27-
import { NgbModal, NgbCollapse } from '@ng-bootstrap/ng-bootstrap';
28-
import { VarDirective } from '../../../shared/utils/var.directive';
29-
import { TranslateModule, TranslateService } from '@ngx-translate/core';
30-
import { RouterTestingModule } from '@angular/router/testing';
3124
import { PaginationService } from '../../../core/pagination/pagination.service';
3225
import { RouteService } from '../../../core/services/route.service';
3326
import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component';

src/app/process-page/overview/table/process-overview-table.component.ts

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ import {
1818
RouterLink,
1919
} from '@angular/router';
2020
import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';
21-
import { TranslateModule } from '@ngx-translate/core';
21+
import {
22+
TranslateModule,
23+
TranslateService,
24+
} from '@ngx-translate/core';
2225
import {
2326
BehaviorSubject,
2427
from as observableFrom,
@@ -38,10 +41,6 @@ import { PaginationService } from 'src/app/core/pagination/pagination.service';
3841
import { AuthService } from '../../../core/auth/auth.service';
3942
import { DSONameService } from '../../../core/breadcrumbs/dso-name.service';
4043
import { FindListOptions } from '../../../core/data/find-list-options.model';
41-
import { Component, Input, OnInit, Inject, PLATFORM_ID, OnDestroy } from '@angular/core';
42-
import { ProcessStatus } from '../../processes/process-status.model';
43-
import { Observable, mergeMap, from as observableFrom, BehaviorSubject, Subscription } from 'rxjs';
44-
import { RemoteData } from '../../../core/data/remote-data';
4544
import { PaginatedList } from '../../../core/data/paginated-list.model';
4645
import { RemoteData } from '../../../core/data/remote-data';
4746
import { EPersonDataService } from '../../../core/eperson/eperson-data.service';
@@ -50,10 +49,12 @@ import { RouteService } from '../../../core/services/route.service';
5049
import { redirectOn4xx } from '../../../core/shared/authorized.operators';
5150
import {
5251
getAllCompletedRemoteData,
53-
getFirstSucceededRemoteDataPayload,
54-
getAllCompletedRemoteData, getFirstCompletedRemoteData
52+
getFirstCompletedRemoteData,
5553
} from '../../../core/shared/operators';
56-
import { hasValue } from '../../../shared/empty.util';
54+
import {
55+
hasValue,
56+
isNotEmpty,
57+
} from '../../../shared/empty.util';
5758
import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component';
5859
import { PaginationComponent } from '../../../shared/pagination/pagination.component';
5960
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
@@ -65,17 +66,6 @@ import {
6566
ProcessOverviewService,
6667
ProcessSortField,
6768
} from '../process-overview.service';
68-
import { map, switchMap, toArray, take, filter } from 'rxjs/operators';
69-
import { EPerson } from '../../../core/eperson/models/eperson.model';
70-
import { PaginationService } from 'src/app/core/pagination/pagination.service';
71-
import { FindListOptions } from '../../../core/data/find-list-options.model';
72-
import { redirectOn4xx } from '../../../core/shared/authorized.operators';
73-
import { Router } from '@angular/router';
74-
import { AuthService } from '../../../core/auth/auth.service';
75-
import { isPlatformBrowser } from '@angular/common';
76-
import { RouteService } from '../../../core/services/route.service';
77-
import { hasValue, isNotEmpty } from '../../../shared/empty.util';
78-
import { TranslateService } from '@ngx-translate/core';
7969

8070
const NEW_PROCESS_PARAM = 'new_process_id';
8171

0 commit comments

Comments
 (0)