diff --git a/src/app/components/add-family/add-family.component.html b/src/app/components/add-family/add-family.component.html index 3fad187..ab73096 100644 --- a/src/app/components/add-family/add-family.component.html +++ b/src/app/components/add-family/add-family.component.html @@ -1,5 +1,5 @@
-
+
Add Family
@@ -83,13 +83,26 @@ -
- {{addFamilyResult}} - Add -
+ + + + + Close + + + + +
+ {{addFamilyResult}} + Add +
+
+
+
+
diff --git a/src/app/components/add-family/add-family.component.ts b/src/app/components/add-family/add-family.component.ts index 2e4d161..d14fdec 100644 --- a/src/app/components/add-family/add-family.component.ts +++ b/src/app/components/add-family/add-family.component.ts @@ -40,11 +40,10 @@ export class AddFamilyComponent implements OnInit { } setCloseModal(){ + this.firstname=''; + this.lastname=''; this.isModalOpen = false; - setTimeout(()=>{ - this.isModalOpenBackdrop= false; - //this.myWallet(); - },1000); + this.isModalOpenBackdrop= false; } isDisabled:boolean= true; @@ -103,10 +102,11 @@ this.reqData={ if (this.createFamilyResult.internal_return> 0){ this.firstname=''; this.lastname=''; - + this.createFamilyResult = "Family Added"; setTimeout(()=>{ this.createFamilyResult=""; + this.setCloseModal(); },3000); } }