Renamed groups to roles in the frontend

Working:
 Account
 Cost Centre
 Employee
 Product Group
 Product
 Role
 User
 Client
This commit is contained in:
tanshu
2020-05-12 01:31:21 +05:30
parent cd764be49c
commit 6dbab6442f
50 changed files with 272 additions and 295 deletions

View File

@ -0,0 +1,19 @@
import {Injectable} from '@angular/core';
import {ActivatedRouteSnapshot, Resolve, Router, RouterStateSnapshot} from '@angular/router';
import {Role} from './role';
import {Observable} from 'rxjs/internal/Observable';
import {RoleService} from './role.service';
@Injectable({
providedIn: 'root'
})
export class RoleResolver implements Resolve<Role> {
constructor(private ser: RoleService, private router: Router) {
}
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<Role> {
const id = route.paramMap.get('id');
return this.ser.get(id);
}
}