소스 검색

Added certificates endopoint to card, permissions for admin, visual adjustments

Oscar José Nuñez Chávez 6 년 전
부모
커밋
f157b6d087
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/app/components/dashboard/dashboard.component.ts

+ 3 - 3
src/app/components/dashboard/dashboard.component.ts

@@ -114,7 +114,7 @@ export class DashboardComponent implements OnInit {
         this.assetKeys = Object.keys(this.listAssets);
 
         //DEMO
-        if (this.userLevel == 3) {
+        if (this.userLevel == 0) {
           this.sumarize = 320;
           this.totalAssetsInstalled = 1;
         } else {
@@ -191,7 +191,7 @@ export class DashboardComponent implements OnInit {
     for (const plant of this.listAssets) {
       if (plant["meters_installed"].length > 0) {
         // DEMO
-        if (this.userLevel == 3) {
+        if (this.userLevel == 0) {
           lat = "13.6613819";
           long = "-89.2514334";
           address =
@@ -220,7 +220,7 @@ export class DashboardComponent implements OnInit {
   sendPlantId(id: string) {
     this.plantId = id;
     // DEMO
-    if (this.userLevel == 3) {
+    if (this.userLevel == 0) {
       this.selectedPlant = {
         name: "Inversiones MERELEC S.A de C.V",
         country: "El Salvador",