using hidden field instead of enabled.

This commit is contained in:
Jason Kulatunga 2023-01-04 23:13:21 -08:00
parent d0f87c4381
commit 396e25ce20
4 changed files with 4 additions and 4 deletions

View File

@ -2,5 +2,5 @@ export class MetadataSource {
source_type: string
display: string
category: string[]
enabled: boolean
hidden: boolean
}

View File

@ -5,6 +5,6 @@ export class SourceState {
code_verifier?: string
code_challenge_method?: string
code_challenge?: string
enabled: boolean
hidden: boolean
redirect_uri?: string
}

View File

@ -60,7 +60,7 @@ export class DashboardComponent implements OnInit {
"source_type": "manual",
"display": "Manual",
"category": ["Manual"],
"enabled": true,
"hidden": false,
}
//calculate the number of records

View File

@ -84,7 +84,7 @@
<div *ngIf="!loading else isLoadingTemplate" class="row row-sm">
<div *ngFor="let sourceData of availableSourceList" (click)="connectHandler($event, sourceData.metadata.source_type)" class="col-sm-3 mg-b-20 px-3">
<div class="card h-100 d-flex align-items-center justify-content-center mt-3 mt-3 rounded-0 cursor-pointer" [ngClass]="{'card-disable': !sourceData.metadata.enabled}">
<div class="card h-100 d-flex align-items-center justify-content-center mt-3 mt-3 rounded-0 cursor-pointer" [ngClass]="{'card-disable': sourceData.metadata.hidden}">
<div class="card-body d-flex align-items-center">
<img style="max-height: 130px;" [src]="'assets/sources/'+sourceData.metadata.source_type+'.png'" [alt]="metadataSources[sourceData.metadata.source_type].display" class="img-fluid">
<div *ngIf="status[sourceData.metadata.source_type]" class="progress">