add recip

This commit is contained in:
CHIEFSOFT\ameye
2023-10-29 17:27:35 -04:00
parent 6485ee709f
commit f7df2e56b6
5 changed files with 20 additions and 6 deletions
+8 -2
View File
@@ -62,12 +62,18 @@
</ion-row>
<ion-row>
<ion-col>
<ion-select placeholder="Select Recipient" [(ngModel)]='recipient' size="block">
<!-- <ion-select-option value="" >Select Recipient</ion-select-option>-->
<ion-select (ionChange)="checkSelectVal()" placeholder="Select Recipient" [(ngModel)]='recipient' size="block">
<!-- <ion-select-option value="" >Select Recipient</ion-select-option>-->
<ion-select-option value="{{item.recipient_uid}}" *ngFor="let item of myRecipientsData">{{item.recipient}}</ion-select-option>
<!-- <ion-select-option value="ADD_NEW_RECIP" >Add Recipient</ion-select-option>-->
</ion-select>
<!-- <ion-label>{{recipient_name}}</ion-label>-->
</ion-col>
<ion-col size="auto">
<ion-button style="padding: 0px; font-size: 95%; font-weight: bolder;" (click)="addNewBank()">
<ion-icon slot="icon-only" name="add"></ion-icon>
</ion-button>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
+6
View File
@@ -189,6 +189,12 @@ array (size=4)
}
}
checkSelectVal(){
if (this.recipient == 'ADD_NEW_RECIP'){
this.addNewBank();
this.recipient='';
}
}
async showAlert(mtitle: string, amessage: string) {
const alert = await this.alertController.create({
header: 'WrenchBoard',