build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -8,9 +8,8 @@ describe('NotificationsTrayComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ NotificationsTrayComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [NotificationsTrayComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -34,24 +34,25 @@ export class NotificationsTrayComponent implements OnInit, OnDestroy {
|
||||
* Shares, Savings, Deposits, Loans routes inaccessible because of dependency on entity ID.
|
||||
*/
|
||||
routeMap: any = {
|
||||
'client' : '/clients/',
|
||||
'group' : '/groups/',
|
||||
'loan': '/loans-accounts/',
|
||||
'center' : '/centers/',
|
||||
'shareAccount' : '/shares-accounts/',
|
||||
'fixedDeposit' : '/fixed-deposits-accounts/',
|
||||
'recurringDepositAccount': '/recurring-deposits-accounts/',
|
||||
'savingsAccount' : '/savings-accounts/',
|
||||
'shareProduct': '/products/share-products/',
|
||||
'loanProduct' : '/products/loan-products/'
|
||||
client: '/clients/',
|
||||
group: '/groups/',
|
||||
loan: '/loans-accounts/',
|
||||
center: '/centers/',
|
||||
shareAccount: '/shares-accounts/',
|
||||
fixedDeposit: '/fixed-deposits-accounts/',
|
||||
recurringDepositAccount: '/recurring-deposits-accounts/',
|
||||
savingsAccount: '/savings-accounts/',
|
||||
shareProduct: '/products/share-products/',
|
||||
loanProduct: '/products/loan-products/'
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {NotificationsService} notificationsService Notifications Service
|
||||
*/
|
||||
constructor(public notificationsService: NotificationsService) {
|
||||
forkJoin([this.notificationsService.getNotifications(true, 9), this.notificationsService.getNotifications(false, 9)])
|
||||
.subscribe((response: any[]) => {
|
||||
forkJoin([
|
||||
this.notificationsService.getNotifications(true, 9),
|
||||
this.notificationsService.getNotifications(false, 9)]).subscribe((response: any[]) => {
|
||||
this.readNotifications = response[0].pageItems;
|
||||
this.unreadNotifications = response[1].pageItems;
|
||||
this.setNotifications();
|
||||
@@ -83,7 +84,9 @@ export class NotificationsTrayComponent implements OnInit, OnDestroy {
|
||||
this.setNotifications();
|
||||
});
|
||||
// this.mockNotifications(); // Uncomment for Testing.
|
||||
this.timer = setTimeout(() => { this.fetchUnreadNotifications(); }, this.waitTime * 1000);
|
||||
this.timer = setTimeout(() => {
|
||||
this.fetchUnreadNotifications();
|
||||
}, this.waitTime * 1000);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -107,5 +110,4 @@ export class NotificationsTrayComponent implements OnInit, OnDestroy {
|
||||
this.setNotifications();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user