feat: standing instructions history (#1177)

Fixes: #1176
This commit is contained in:
Karan Takalkar
2020-08-05 17:04:59 +05:30
committed by GitHub
parent eefb325bdd
commit 8a783a3394
10 changed files with 362 additions and 6 deletions
@@ -0,0 +1,30 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
/** rxjs Imports */
import { Observable } from 'rxjs';
/** Custom Services */
import { OrganizationService } from '../organization.service';
/**
* Standing Instructions Template resolver.
*/
@Injectable()
export class StandingInstructionsTemplateResolver implements Resolve<Object> {
/**
* @param {OrganizationService} organizationService Organization service.
*/
constructor(private organizationService: OrganizationService) {}
/**
* Returns the Standing Instruction template.
* @returns {Observable<any>}
*/
resolve(): Observable<any> {
return this.organizationService.getStandingInstructionTemplate();
}
}