appointment issue fix
This commit is contained in:
parent
9070d295f7
commit
9b37786176
@ -136,7 +136,7 @@ export class AppoinmentsListComponent implements OnInit {
|
||||
console.log(this.appointmentListLength)
|
||||
this.appointmentListSource['data'] = this.appoinmentsList;
|
||||
console.log(this.appointmentListSource)
|
||||
this.recordStatus=false;
|
||||
|
||||
console.log(this.appoinmentsList)
|
||||
|
||||
this.appoinmentsList.forEach(element => {
|
||||
@ -166,6 +166,7 @@ export class AppoinmentsListComponent implements OnInit {
|
||||
this.appointmentListSource['data'] = filter
|
||||
this.appointmentListLength = filter.length;
|
||||
console.log(this.appointmentListSource)
|
||||
this.recordStatus=false;
|
||||
|
||||
} else {
|
||||
console.log('else')
|
||||
|
||||
@ -114,8 +114,15 @@ export class DialogBoxComponent implements OnInit {
|
||||
this.local_data = {...data};
|
||||
this.action = this.local_data.action;
|
||||
|
||||
this.advanced_slot_days = parseInt(localStorage.getItem('advanced_slot_days'))-1
|
||||
console.log(this.advanced_slot_days)
|
||||
let advanceDays = localStorage.getItem('advanced_slot_days')
|
||||
if(advanceDays == null){
|
||||
this.advanced_slot_days = 7
|
||||
}else{
|
||||
this.advanced_slot_days = parseInt(localStorage.getItem('advanced_slot_days'))-1
|
||||
console.log(this.advanced_slot_days)
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
get f(){
|
||||
@ -150,6 +157,8 @@ export class DialogBoxComponent implements OnInit {
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
|
||||
// this._app.customerlist_observable$.subscribe((res) => {
|
||||
// console.log('cus', res);
|
||||
|
||||
@ -300,11 +309,13 @@ export class DialogBoxComponent implements OnInit {
|
||||
}
|
||||
|
||||
submit(){
|
||||
|
||||
console.log(this.form.value,this.slotsResult,this.days[this.clicks]);
|
||||
// if (!this.form.valid) {
|
||||
// return;
|
||||
// }
|
||||
if(this.slotsResult == undefined){
|
||||
this.notifierService.notify('warning', 'Please Select Slots');
|
||||
}
|
||||
if (!this.form.valid) {
|
||||
return;
|
||||
}
|
||||
console.log(this.form.value,this.slotsResult,this.days[this.clicks]);
|
||||
|
||||
let paramsmap= {
|
||||
|
||||
@ -68,9 +68,7 @@ export class BusinessListComponent implements OnInit {
|
||||
return b.id - a.id;
|
||||
});
|
||||
this.businessList.forEach((element, index) => {
|
||||
element.index = index
|
||||
|
||||
|
||||
element.index = index
|
||||
});
|
||||
this.businessListSource['data'] = this.businessList;
|
||||
console.log(this.businessListSource)
|
||||
|
||||
@ -203,8 +203,8 @@
|
||||
<label>Advanced Booking Allowed Days <span style="margin-left: 2rem;">-</span></label>
|
||||
<a style="padding: 10px;" *ngIf="isEditable == false">{{practitionerdetails.days}}</a>
|
||||
<mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
||||
<mat-label>No of Slot Days</mat-label>
|
||||
<input type="text" matInput placeholder="Experience" [(ngModel)]="days">
|
||||
<mat-label>Advanced Booking Allowed Days </mat-label>
|
||||
<input type="text" matInput appMobileNumberPattern placeholder="Booking Allowed Days" [(ngModel)]="days">
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="form-group label-container" *ngIf="userRole != 'BADMIN'">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user