penjagaan double room
This commit is contained in:
parent
9a29e2e4e0
commit
f86dfb7829
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue