diff --git a/src/app/loans/loans-view/datatable-tab/datatable-tab.component.ts b/src/app/loans/loans-view/datatable-tab/datatable-tab.component.ts index 4d0b17848..418686391 100644 --- a/src/app/loans/loans-view/datatable-tab/datatable-tab.component.ts +++ b/src/app/loans/loans-view/datatable-tab/datatable-tab.component.ts @@ -10,7 +10,7 @@ export class DatatableTabComponent { entityId: string; /** Loan Datatable */ - entityDatatable: any; + entityDatatable: any = null; /** Multi Row Datatable Flag */ multiRowDatatableFlag: boolean; @@ -20,9 +20,10 @@ export class DatatableTabComponent { */ constructor(private route: ActivatedRoute) { this.entityId = this.route.parent.parent.snapshot.paramMap.get('loanId'); - + this.entityDatatable = null; this.route.data.subscribe((data: { loanDatatable: any }) => { this.entityDatatable = data.loanDatatable; + console.log(this.entityDatatable); this.multiRowDatatableFlag = this.entityDatatable.columnHeaders[0].columnName === 'id' ? true : false; }); } diff --git a/src/app/loans/loans-view/datatable-tab/multi-row/multi-row.component.html b/src/app/loans/loans-view/datatable-tab/multi-row/multi-row.component.html deleted file mode 100644 index 0ef067f5b..000000000 --- a/src/app/loans/loans-view/datatable-tab/multi-row/multi-row.component.html +++ /dev/null @@ -1,34 +0,0 @@ -
| {{datatableColumn}} | -{{ formatValue(i, data.row[i]) }} | -
|---|
This form will be used to add fund. If you would like to add fund click on add funds button and fill the fund name then click on + button else click Next or Back. For more details click: Manage Funds
diff --git a/src/app/organization/manage-funds/manage-funds.component.scss b/src/app/organization/manage-funds/manage-funds.component.scss index 5911b9d88..9cb2c854a 100644 --- a/src/app/organization/manage-funds/manage-funds.component.scss +++ b/src/app/organization/manage-funds/manage-funds.component.scss @@ -1,3 +1,11 @@ .container{ width: 74rem; } + +table { + width: 100%; + + .select-row:hover { + cursor: pointer; + } +} diff --git a/src/app/organization/manage-funds/manage-funds.component.ts b/src/app/organization/manage-funds/manage-funds.component.ts index 0a506fa86..4415bbeaa 100644 --- a/src/app/organization/manage-funds/manage-funds.component.ts +++ b/src/app/organization/manage-funds/manage-funds.component.ts @@ -18,6 +18,9 @@ import { ConfigurationWizardService } from '../../configuration-wizard/configura /** Custom Dialog Component */ import { ContinueSetupDialogComponent } from '../../configuration-wizard/continue-setup-dialog/continue-setup-dialog.component'; +import { MatTableDataSource } from '@angular/material/table'; +import { MatPaginator } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; /** * Manage Funds component. @@ -40,6 +43,15 @@ export class ManageFundsComponent implements OnInit, AfterViewInit { @ViewChild('fundFormRef') fundFormRef: ElementRef| {{datatableColumn}} | diff --git a/src/app/shared/tabs/entity-datatable-tab/datatable-multi-row/datatable-multi-row.component.ts b/src/app/shared/tabs/entity-datatable-tab/datatable-multi-row/datatable-multi-row.component.ts index 3a9aa5d16..c2c8ba888 100644 --- a/src/app/shared/tabs/entity-datatable-tab/datatable-multi-row/datatable-multi-row.component.ts +++ b/src/app/shared/tabs/entity-datatable-tab/datatable-multi-row/datatable-multi-row.component.ts @@ -1,5 +1,5 @@ import { DecimalPipe } from '@angular/common'; -import { Component, Input, OnInit, ViewChild } from '@angular/core'; +import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MatTable } from '@angular/material/table'; import { ActivatedRoute } from '@angular/router'; @@ -18,7 +18,7 @@ import { SystemService } from 'app/system/system.service'; templateUrl: './datatable-multi-row.component.html', styleUrls: ['./datatable-multi-row.component.scss'] }) -export class DatatableMultiRowComponent implements OnInit { +export class DatatableMultiRowComponent implements OnInit, OnDestroy { /** Data Object */ @Input() dataObject: any; @@ -34,6 +34,7 @@ export class DatatableMultiRowComponent implements OnInit { /** Toggle button visibility */ showDeleteBotton: boolean; + hasEntityData = false; /** Data Table Reference */ @ViewChild('dataTable', { static: true }) dataTableRef: MatTable
|---|