feat: Display Previous Versions #88

Merged
allan merged 17 commits from restore into main 2024-04-04 13:24:26 +00:00
4 changed files with 14 additions and 22 deletions
Showing only changes of commit 79121168e4 - Show all commits

View File

@ -20,9 +20,7 @@
>
<clr-datagrid>
<ng-container *ngFor="let col of tab.colsToDisplay">
<clr-dg-column
>{{ col.colName || col.colKey }}</clr-dg-column
>
<clr-dg-column>{{ col.colName || col.colKey }}</clr-dg-column>
</ng-container>
<clr-dg-row

View File

@ -54,10 +54,7 @@ export class DatasetInfoComponent implements OnInit, OnChanges {
this.dsmetaTabs.push({
name: info.ODS_TABLE,
title: 'Dataset Meta',
colsToDisplay: [
{colKey: 'NAME'},
{colKey: 'VALUE'}
],
colsToDisplay: [{ colKey: 'NAME' }, { colKey: 'VALUE' }],
meta: [],
onRowClick: (value: DSMeta) => {
this.rowClicked.emit(value)
@ -74,13 +71,13 @@ export class DatasetInfoComponent implements OnInit, OnChanges {
name: 'VERSIONS',
title: 'Dataset Meta',
colsToDisplay: [
{colKey: 'LOAD_REF'},
{colKey: 'USER_NM'},
{colKey: 'VERSION_DTTM'},
{colKey: 'NEW_RECORDS', colName: 'ADD'},
{colKey: 'CHANGED_RECORDS', colName: 'MOD'},
{colKey: 'DELETED_RECORDS', colName: 'DEL'},
{colKey: 'VERSION_DESC'}
{ colKey: 'LOAD_REF' },
{ colKey: 'USER_NM' },
{ colKey: 'VERSION_DTTM' },
{ colKey: 'NEW_RECORDS', colName: 'ADD' },
{ colKey: 'CHANGED_RECORDS', colName: 'MOD' },
{ colKey: 'DELETED_RECORDS', colName: 'DEL' },
{ colKey: 'VERSION_DESC' }
],
meta: this.versions,
onRowClick: (value: Version) => {

View File

@ -1,4 +1,4 @@
export interface Tab<T>{
export interface Tab<T> {
name: string
title: string
/**

View File

@ -56,7 +56,6 @@
<div class="card-title text-center">Actions</div>
</div>
<div class="mt-20">
<div class="row">
<button
class="btn btn-sm btn-outline text-center mt-20"
@ -97,13 +96,11 @@
REVERT (Coming Soon)
<clr-tooltip-content
clrPosition="bottom-right"
clrSize="lg"
*clrIfOpen
clrPosition="bottom-right"
clrSize="lg"
*clrIfOpen
>
<span>
Revert this and all subsequent changes
</span>
<span> Revert this and all subsequent changes </span>
</clr-tooltip-content>
</button>
</clr-tooltip>