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

Merge branch 'features-o' of onunez/frontend-inversiones into development

Oscar José Nuñez Chávez преди 5 години
родител
ревизия
6670c58be7
променени са 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;