External events management view

This commit is contained in:
Jose Alberto Hernandez
2022-10-27 15:50:01 +02:00
committed by Arnold Gálovics
parent 11b1e6793b
commit eaa58a7caf
10 changed files with 236 additions and 2 deletions
@@ -0,0 +1,27 @@
import { Injectable } from '@angular/core';
import {
Router, Resolve,
RouterStateSnapshot,
ActivatedRouteSnapshot
} from '@angular/router';
import { Observable, of } from 'rxjs';
import { SystemService } from '../system.service';
@Injectable({
providedIn: 'root'
})
export class ManageExternalEventsResolver implements Resolve<boolean> {
/**
* @param {SystemService} systemService System service.
*/
constructor(private systemService: SystemService) {}
/**
* Returns the Configuration data.
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
return this.systemService.getExternalEventConfiguration();
}
}