-
-
-
-
-
{{datatableName}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
{{datatableName}}
+
+
+
+
diff --git a/src/app/loans/loans-view/loan-documents-tab/loan-documents-tab.component.ts b/src/app/loans/loans-view/loan-documents-tab/loan-documents-tab.component.ts
index 64cd84c20..ee9b34830 100644
--- a/src/app/loans/loans-view/loan-documents-tab/loan-documents-tab.component.ts
+++ b/src/app/loans/loans-view/loan-documents-tab/loan-documents-tab.component.ts
@@ -21,7 +21,7 @@ export class LoanDocumentsTabComponent implements OnInit {
entityDocuments: any;
/** Loan account Id */
entityId: string;
- entityType: string = 'loans';
+ entityType = 'loans';
/**
* Retrieves the loans data from `resolve`.
diff --git a/src/app/savings/savings-account-view/notes-tab/notes-tab.component.ts b/src/app/savings/savings-account-view/notes-tab/notes-tab.component.ts
index 98f0647cc..56da5ddfa 100644
--- a/src/app/savings/savings-account-view/notes-tab/notes-tab.component.ts
+++ b/src/app/savings/savings-account-view/notes-tab/notes-tab.component.ts
@@ -34,7 +34,7 @@ export class NotesTabComponent implements OnInit {
id: response.resourceId,
createdByUsername: this.username,
createdOn: new Date(),
- note: noteContent
+ note: noteContent.note
});
});
}
diff --git a/src/app/savings/savings-account-view/savings-documents-tab/savings-documents-tab.component.ts b/src/app/savings/savings-account-view/savings-documents-tab/savings-documents-tab.component.ts
index b0829ac7b..c588b070a 100644
--- a/src/app/savings/savings-account-view/savings-documents-tab/savings-documents-tab.component.ts
+++ b/src/app/savings/savings-account-view/savings-documents-tab/savings-documents-tab.component.ts
@@ -17,7 +17,7 @@ export class SavingsDocumentsTabComponent implements OnInit {
entityDocuments: any;
/** Stores the saving Account Id */
entityId: string;
- entityType: string = 'savings';
+ entityType = 'savings';
/**
* Retrieves the savings data from `resolve`.
diff --git a/src/app/savings/savings-routing.module.ts b/src/app/savings/savings-routing.module.ts
index 2605e4565..706eec7ae 100644
--- a/src/app/savings/savings-routing.module.ts
+++ b/src/app/savings/savings-routing.module.ts
@@ -41,7 +41,6 @@ import { SavingsDocumentsTabComponent } from './savings-account-view/savings-doc
import { NotesTabComponent } from './savings-account-view/notes-tab/notes-tab.component';
import { SavingNotesResolver } from './common-resolvers/saving-notes.resolver';
import { SavingDocumentsResolver } from './common-resolvers/saving-documents.resolver';
-import { DocumentsTabComponent } from 'app/clients/clients-view/documents-tab/documents-tab.component';
/** Savings Routes */
const routes: Routes = [
{
@@ -106,10 +105,10 @@ const routes: Routes = [
},
{
path: 'documents',
- component: DocumentsTabComponent,
+ component: SavingsDocumentsTabComponent,
data: { title: extract('Savings Account Documents'), breadcrumb: 'Documents', routeParamBreadcrumb: false },
resolve: {
- savingAccountDocuments: SavingDocumentsResolver
+ savingsDocuments: SavingDocumentsResolver
}
},
{
diff --git a/src/app/shared/tabs/entity-documents-tab/entity-documents-tab.component.html b/src/app/shared/tabs/entity-documents-tab/entity-documents-tab.component.html
index f9eee5951..16008724c 100644
--- a/src/app/shared/tabs/entity-documents-tab/entity-documents-tab.component.html
+++ b/src/app/shared/tabs/entity-documents-tab/entity-documents-tab.component.html
@@ -45,6 +45,6 @@
|
-
10" [pageSizeOptions]="[10, 25, 50, 100]" showFirstLastButtons>
+
10" [pageSizeOptions]="[10, 25, 50]" showFirstLastButtons>
diff --git a/src/app/shared/tabs/entity-notes-tab/entity-notes-tab.component.ts b/src/app/shared/tabs/entity-notes-tab/entity-notes-tab.component.ts
index ceab73be7..8e226faef 100644
--- a/src/app/shared/tabs/entity-notes-tab/entity-notes-tab.component.ts
+++ b/src/app/shared/tabs/entity-notes-tab/entity-notes-tab.component.ts
@@ -2,6 +2,7 @@ import { Component, Input, OnInit, ViewChild } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { ClientsService } from 'app/clients/clients.service';
+import { GroupsService } from 'app/groups/groups.service';
import { LoansService } from 'app/loans/loans.service';
import { SavingsService } from 'app/savings/savings.service';
import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component';
@@ -29,6 +30,7 @@ export class EntityNotesTabComponent implements OnInit {
private savingsService: SavingsService,
private loansService: LoansService,
private clientsService: ClientsService,
+ private groupsService: GroupsService,
private dialog: MatDialog) { }
ngOnInit() {