Переглянути джерело

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

Oscar José Nuñez Chávez 5 роки тому
батько
коміт
6670c58be7

+ 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;