Skip to content

Commit

Permalink
Merge pull request #220 from bcgov/ticdi-39
Browse files Browse the repository at this point in the history
update_time -> create_time in template table
  • Loading branch information
mgtennant authored Jul 16, 2024
2 parents e08e756 + 4124b0b commit fa8bbf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions backend/src/admin/admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ export class AdminService {
template_version: template.template_version,
file_name: template.file_name,
active_flag: template.active_flag,
create_timestamp: formattedDate(template.create_timestamp),
update_timestamp: formattedDate(template.update_timestamp),
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ const TemplateInfoTable: React.FC<TemplateInfoTableProps> = ({ documentType, ref
enableSorting: true,
meta: { customCss: { width: '47%' } },
}),
columnHelper.accessor('update_timestamp', {
id: 'update_timestamp',
columnHelper.accessor('create_timestamp', {
id: 'create_timestamp',
cell: (info) => <input value={info.getValue()} className="form-control readonlyInput" readOnly />,
header: () => 'Uploaded Date',
enableSorting: true,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/app/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export type DocumentDataObject = {
export type TemplateInfo = {
template_version: number;
file_name: string;
create_timestamp: string;
update_timestamp: string;
active_flag: boolean;
view: any; // remove from route
Expand Down

0 comments on commit fa8bbf4

Please sign in to comment.