penjagaan double room

This commit is contained in:
Fuzi_fauzia 2024-07-18 14:35:07 +07:00
parent 9a29e2e4e0
commit f86dfb7829
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export class AddEditListComponent {
dataMasterStatus: any; dataMasterStatus: any;
roombuildingId: any; roombuildingId: any;
dataRoomBuilding: any; dataRoomBuilding: any;
disableButton: boolean = false; disableButton: boolean = true;
// userProfileForm: FormGroup; // userProfileForm: FormGroup;
public userList: FormArray; public userList: FormArray;
@ -78,12 +78,12 @@ export class AddEditListComponent {
addPhone() { addPhone() {
this.userList.push(this.createRoom()); this.userList.push(this.createRoom());
this.disableButton = true
} }
removePhone(index) { removePhone(index) {
this.userList.removeAt(index); this.userList.removeAt(index);
this.isRoomDuplicate(index) this.isRoomDuplicate(index)
} }
validateDouble(event: any, index: number) { validateDouble(event: any, index: number) {