Преглед на файлове

filtro para mostrar inversiones activas por default en pantalla de listado de inversiones, ajuste para carga de instrumento dinamico en pantalla de revision

Oscar José Nuñez Chávez преди 5 години
родител
ревизия
a87f7d81a3
променени са 2 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 1 1
      src/app/components/investment-proposals/review/review.component.ts
  2. 5 0
      src/app/components/investments/investments.component.ts

+ 1 - 1
src/app/components/investment-proposals/review/review.component.ts

@@ -309,7 +309,7 @@ export class InvestmentProposalReviewComponent implements OnInit {
   }
 
   loadComponent() {
-    const adItem = this.ads[this.currentAdIndex];
+    const adItem = this.ads[this.indexDynamicComponent];
     const componentFactory = this.componentFactoryResolver.resolveComponentFactory(
       adItem.component
     );

+ 5 - 0
src/app/components/investments/investments.component.ts

@@ -81,6 +81,11 @@ export class InvestmentsComponent implements OnInit {
     this.investmentsService.getProposalInvestmentsList().subscribe(
       ans => {
         this.listProposals = ans.result;
+
+        this.listProposals = this.listProposals.filter(
+          proposals => proposals["id_estado_inversion"]["codigo"] == "FINAL"
+        );
+
         console.log(this.listProposals);
         this.dataSource.data = this.listProposals;