Browse Source

correcciones

Oscar José Nuñez Chávez 5 years ago
parent
commit
e6f4ddf488

+ 1 - 1
src/app/components/dashboard/dashboard.component.html

@@ -27,7 +27,7 @@
               <div class="col-sm-12 col-md-6">
                 <h3 class="mb-3">
                   Distribuidora:
-                  <strong *ngIf="rates.distribuidora">
+                  <strong>
                     {{ rates.distribuidora }}
                   </strong>
                 </h3>

+ 2 - 0
src/app/components/dashboard/dashboard.component.ts

@@ -112,6 +112,7 @@ export class DashboardComponent implements OnInit {
       cargo_energia_valle: null,
     },
   };
+  defaultRates: boolean;
 
   constructor(
     private plantsService: PlantsService,
@@ -191,6 +192,7 @@ export class DashboardComponent implements OnInit {
 
     this.ratesService.getDefaultRate().subscribe((res) => {
       this.rates = res["data"];
+      this.defaultRates = true;
     });
 
     var responsiveOptions: any[] = [

+ 4 - 2
src/app/components/lost-account/lost-account.component.html

@@ -3,7 +3,9 @@
     <div class="vertical-align-middle auth-main">
       <div class="auth-box">
         <div class="top">
-          <img alt="Inverlec" src="./assets/img/inverlec_logo.png" />
+          <a href="/">
+            <img alt="Inverlec" src="./assets/img/inverlec_logo.png" />
+          </a>
         </div>
 
         <div class="card">
@@ -43,7 +45,7 @@
               </div>
             </div>
 
-            <div *ngIf="error">
+            <div class="tokenError" *ngIf="error">
               <h3>
                 {{ errorMessage }}
               </h3>

+ 2 - 0
src/app/components/lost-account/lost-account.component.ts

@@ -63,6 +63,8 @@ export class LostAccountComponent implements OnInit {
       .subscribe(
         (res) => {
           this.hideForm = true;
+          this.error = false;
+
           this.activateMessage =
             "Se han enviado instrucciones al correo ingresado";
         },

+ 2 - 5
src/app/components/new-password/new-password.component.ts

@@ -93,10 +93,7 @@ export class NewPasswordComponent implements OnInit {
     }
 
     this.userService
-      .activateUser({
-        email: this.f.email.value,
-        first_name: this.f.first_name.value,
-        last_name: this.f.last_name.value,
+      .changePassword({
         password: this.f.password.value,
         confirm_password: this.f.confirm_password.value,
         /*phone_number: this.f.phone_number.value,
@@ -107,7 +104,7 @@ export class NewPasswordComponent implements OnInit {
         (res) => {
           this.successActivation = true;
           this.validToken = false;
-          this.activateMessage = "Usuario registrado con exito";
+          this.activateMessage = "Su clave ha sido actualizada exitosamente";
         },
         (err) => {
           this.validToken = false;