111638: Show process ID instead of status

This commit is contained in:
Andreas Awouters
2024-02-06 10:10:26 +01:00
parent 14294e20ee
commit 8d473eaead
4 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@
<table class="table table-striped table-hover">
<thead>
<tr>
<th scope="col" class="status-header">{{'process.overview.table.status' | translate}}</th>
<th scope="col" class="id-header">{{'process.overview.table.id' | translate}}</th>
<th scope="col" class="name-header">{{'process.overview.table.name' | translate}}</th>
<th scope="col" class="user-header">{{'process.overview.table.user' | translate}}</th>
<th scope="col" class="info-header">{{'process.overview.table.' + processStatus.toLowerCase() + '.info' | translate}}</th>
@@ -38,7 +38,7 @@
<tbody>
<tr *ngFor="let tableEntry of processesRD?.payload?.page"
[class.table-danger]="processBulkDeleteService.isToBeDeleted(tableEntry.process.processId)">
<td>{{tableEntry.process.processStatus}}</td>
<td><a [routerLink]="['/processes/', tableEntry.process.processId]">{{tableEntry.process.processId}}</a></td>
<td><a [routerLink]="['/processes/', tableEntry.process.processId]">{{tableEntry.process.scriptName}}</a></td>
<td>{{tableEntry.user}}</td>
<td>{{tableEntry.info}}</td>

View File

@@ -7,8 +7,8 @@
vertical-align: middle;
}
.status-header {
width: var(--ds-process-overview-table-status-column-width);
.id-header {
width: var(--ds-process-overview-table-id-column-width);
}
.name-header {

View File

@@ -143,10 +143,10 @@ describe('ProcessOverviewTableComponent', () => {
expect(rowElements.length).toEqual(3);
});
it('should display the process\' status in the first column', () => {
it('should display the process\' ID in the first column', () => {
rowElements.forEach((rowElement, index) => {
const el = rowElement.query(By.css('td:nth-child(1)')).nativeElement;
expect(el.textContent).toContain(processes[index].processStatus);
expect(el.textContent).toContain(processes[index].processId);
});
});

View File

@@ -99,7 +99,7 @@
--ds-dso-edit-virtual-tooltip-min-width: 300px;
--ds-process-overview-table-nb-processes-badge-size: 0.5em;
--ds-process-overview-table-status-column-width: 150px;
--ds-process-overview-table-id-column-width: 120px;
--ds-process-overview-table-name-column-width: auto;
--ds-process-overview-table-user-column-width: 200px;
--ds-process-overview-table-info-column-width: 250px;