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