Procházet zdrojové kódy

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

Oscar José Nuñez Chávez před 6 roky
rodič
revize
f157b6d087

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

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