浏览代码

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",