Skip to content

Commit

Permalink
SNRGY-3647 add createdat field to report files
Browse files Browse the repository at this point in the history
  • Loading branch information
zsco committed Jan 23, 2025
1 parent 1487beb commit ebb6c86
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions src/app/modules/reporting/reportFiles/reportFiles.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
</td>
</ng-container>

<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef>Typ</th>
<td mat-cell *matCellDef="let element">
<div>
{{element.type}}
</div>
</td>
</ng-container>

<ng-container matColumnDef="createdAt">
<th mat-header-cell *matHeaderCellDef>createdAt</th>
<td mat-cell *matCellDef="let element">
<div>
{{element.createdAt | date:"medium"}}
</div>
</td>
</ng-container>

<ng-container matColumnDef="download">
<th mat-header-cell *matHeaderCellDef class="button-column">Download</th>
<td mat-cell *matCellDef="let element">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class ReportFilesComponent implements OnInit {

report: ReportModel = {} as ReportModel;
reportsDataSource = new MatTableDataSource<ReportFileModel>();
displayedColumns: string[] = ['id', 'download', 'delete'];
displayedColumns: string[] = ['id','type','createdAt', 'download', 'delete'];
ready = false;

constructor(
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/reporting/shared/reporting.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

import {
QueriesRequestTimeModel,
QueriesRequestV2ElementTimescaleModel
} from '../../../widgets/shared/export-data.model';

Expand Down Expand Up @@ -81,6 +80,7 @@ export interface ReportModel {
export interface ReportFileModel {
id: string;
type: string;
createdAt: string;
}

export interface ReportCreateResponseModel {
Expand Down

0 comments on commit ebb6c86

Please sign in to comment.