[update] remove unused components
This commit is contained in:
@@ -3,7 +3,6 @@ import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { AppService } from '../../app.service';
|
||||
import { MENU } from "../../@config/menus";
|
||||
import { lastValueFrom } from "rxjs";
|
||||
import { API } from "../../@config/app";
|
||||
import { environment } from 'src/environments/environment';
|
||||
|
||||
@Component({
|
||||
@@ -41,9 +40,9 @@ export class PagesLayoutsComponent implements OnInit {
|
||||
this.auth = this.app.auth();
|
||||
|
||||
if (!this.permissionCheck) {
|
||||
const users = await lastValueFrom(this.app.get(`${API.users}/getById/${this.auth.id}`));
|
||||
this.permission = users.permission;
|
||||
this.permissionCheck = true;
|
||||
// const users = await lastValueFrom(this.app.get(`${API.users}/getById/${this.auth.id}`));
|
||||
// this.permission = users.permission;
|
||||
// this.permissionCheck = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user