set close add family
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div>
|
||||
<div>
|
||||
<div *ngIf="isModalOpenBackdrop==false">
|
||||
<ion-button size="small" shape="round" (click)="addStart()">Add Family</ion-button>
|
||||
</div>
|
||||
<div *ngIf="isModalOpenBackdrop==true">
|
||||
@@ -83,13 +83,26 @@
|
||||
|
||||
|
||||
</ion-item>
|
||||
<div style="text-align: right;">
|
||||
{{addFamilyResult}}
|
||||
<ion-button shape="round"
|
||||
[disabled]="isDisabled"
|
||||
size="small"
|
||||
(click)="addFamilyMember()">Add</ion-button>
|
||||
</div>
|
||||
<ion-grid>
|
||||
<ion-row>
|
||||
<ion-col style="text-align: left">
|
||||
<ion-button (click)="setCloseModal()" size="small" shape="round" color="danger">
|
||||
Close
|
||||
</ion-button>
|
||||
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<div style="text-align: right;">
|
||||
{{addFamilyResult}}
|
||||
<ion-button shape="round"
|
||||
[disabled]="isDisabled"
|
||||
size="small"
|
||||
(click)="addFamilyMember()">Add</ion-button>
|
||||
</div>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user