ソースを参照

Merge branch 'development' of https://git.grupomerelec.com/onunez/frontend-inversiones into feature-formato

ahernandez 5 年 前
コミット
ea430e3e12

+ 2 - 8
src/app/components/investment-proposals/investment-proposals.component.ts

@@ -296,13 +296,7 @@ export class InvestmentProposalsComponent implements OnInit {
         if (this.userList.length > 0) {
           for (let i = 0; i < this.userList.length; i++) {
             if (this.userList[i].default_email == true) {
-              this.test += `<div class='form-check form-check-inline'><input type='checkbox' class='form-check-input' id='next-${
-                this.userList[i].name
-              }' name='users' value='${this.userList[i].name}' checked='${
-                this.userList[i].default_email == "true" ? true : false
-              }'><label class='form-check-label' for='next-${
-                this.userList[i].name
-              }'>${this.userList[i].name}</label></div>`;
+              this.test += `<div class='form-check form-check-inline'><input type='checkbox' class='form-check-input' id='next-${this.userList[i].name}' name='users' value='${this.userList[i].name}' checked='true'><label class='form-check-label' for='next-${this.userList[i].name}'>${this.userList[i].name}</label></div>`;
             } else {
               this.test += `<div class='form-check form-check-inline'><input type='checkbox' class='form-check-input' id='next-${this.userList[i].name}' name='users' value='${this.userList[i].name}'><label class='form-check-label' for='next-${this.userList[i].name}'>${this.userList[i].name}</label></div>`;
             }
@@ -347,7 +341,7 @@ export class InvestmentProposalsComponent implements OnInit {
 
             for (let i = 0; i < this.userList.length; i++) {
               let html_input: HTMLInputElement = document.getElementById(
-                this.userList[i].name
+                "next-" + this.userList[i].name
               ) as HTMLInputElement;
               if (html_input != null) {
                 let html_value: string = html_input.value;