From f7075ce1820d141b50af5792669f8c76d30bd606 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 16 Dec 2023 14:19:02 -0500 Subject: [PATCH] set close add family --- .../add-family/add-family.component.html | 29 ++++++++++++++----- .../add-family/add-family.component.ts | 10 +++---- 2 files changed, 26 insertions(+), 13 deletions(-) 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); } }