uoa-repository-manager-service/app/features/administration/application-level-exceptions/application-level-table/application-level-table.com...

55 lines
2.0 KiB
HTML

<p-fieldset legend="List of Exceptions"
[toggleable]="_searchResultsPage?.data !== null"
[collapsed]="_searchResultsPage?.data === null">
<p-table [value]="_searchResultsPage?.data"
[lazy]="true"
(onLazyLoad)="onLazyLoad($event)"
[paginator]="true"
[rows]="rows"
[totalRecords]="totalRecords"
styleClass="p-datatable-gridlines"
[rowHover]="true"
[loading]="loading"
[autoLayout]="true"
[lazyLoadOnInit]="false">
<ng-template pTemplate="header">
<tr>
<th>Date-Time</th>
<th>Process Id</th>
<th>Job Name</th>
<th>File Code</th>
<th>iPower Client Code</th>
<th>Message</th>
<th>Cause</th>
<th class="one-button">Trace</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-systemException>
<tr>
<td>{{systemException.creationDatetime|date: "dd/MM/yyyy HH:mm"}}</td>
<td>{{systemException.processId}}</td>
<td>{{systemException.jobName}}</td>
<td>{{systemException.dmsFileCode}}</td>
<td>{{systemException.clientId}}</td>
<td>{{systemException.message}}</td>
<td>{{systemException.cause}}</td>
<!-- Edit & Delete icons -->
<td>
<button pButton
(click)="edit(systemException.id)"
icon="pi pi-align-justify"
pTooltip="{{'TRACE' | translate}}"
class="p-button-secondary p-button-rounded p-button-outlined">
</button>
</td>
</tr>
</ng-template>
</p-table>
</p-fieldset>
<app-application-level-dialog [displayDialog]="displayTraceDialog"
[header]="header"
(cancelled)="cancelEditLevelException()"
[trace]="trace">
</app-application-level-dialog>