feat: add manage hooks component (#339)

Fixes #179
This commit is contained in:
Jonathan Zhang
2018-12-08 21:34:28 +05:30
committed by Abhay Chawla
parent 0229cf2515
commit 40e328ceb4
9 changed files with 207 additions and 3 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 { SystemService } from '../system.service';
/**
* Manage hooks data resolver.
*/
@Injectable()
export class ManageHooksResolver implements Resolve<Object> {
/**
* @param {SystemService} systemService System service.
*/
constructor(private systemService: SystemService) {}
/**
* Returns the manage hooks data.
* @returns {Observable<any>}
*/
resolve(): Observable<any> {
return this.systemService.getHooks();
}
}