- add client view page - add general tab - add status lookup pipe to store styles based on status - add accounts filter pipe to filter accounts - add status related colors in _color.scss Fixes: #216
32 lines
811 B
TypeScript
32 lines
811 B
TypeScript
/** Angular Imports */
|
|
import { Injectable } from '@angular/core';
|
|
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
|
|
|
|
/** rxjs Imports */
|
|
import { Observable } from 'rxjs';
|
|
|
|
/** Custom Services */
|
|
import { ClientsService } from '../clients.service';
|
|
|
|
/**
|
|
* Client Summary resolver.
|
|
*/
|
|
@Injectable()
|
|
export class ClientSummaryResolver implements Resolve<Object> {
|
|
|
|
/**
|
|
* @param {ClientsService} ClientsService Clients service.
|
|
*/
|
|
constructor(private clientsService: ClientsService) { }
|
|
|
|
/**
|
|
* Returns the Client Summary data.
|
|
* @returns {Observable<any>}
|
|
*/
|
|
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
|
const clientId = route.parent.paramMap.get('clientId');
|
|
return this.clientsService.getClientSummary(clientId);
|
|
}
|
|
|
|
}
|