diff --git a/ng-seed/Appointment_Frontend_Build.zip b/ng-seed/Appointment_Frontend_Build.zip index 888d223..f1aba54 100644 Binary files a/ng-seed/Appointment_Frontend_Build.zip and b/ng-seed/Appointment_Frontend_Build.zip differ diff --git a/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.html b/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.html index 5c561ec..0f3dfeb 100644 --- a/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.html +++ b/ng-seed/src/app/appoinment/appoinments/appoinments-list/appoinments-list.component.html @@ -14,10 +14,10 @@ - + diff --git a/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.html b/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.html index 58de661..50cfe81 100644 --- a/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.html +++ b/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.html @@ -80,7 +80,7 @@ - + @@ -147,7 +147,10 @@
- +
diff --git a/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.scss b/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.scss index 6bc7d56..d10b836 100644 --- a/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.scss +++ b/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.scss @@ -271,4 +271,10 @@ $tem-color : #217e69; width: auto; border: 1px solid brown; cursor: pointer; +} +.mat-green:disabled { + /* Styles for the button when it's disabled */ + background-color: gray !important; /* Change the background color to gray */ + color: white !important; /* Change the text color to white */ + /* Add any other styling as desired */ } \ No newline at end of file diff --git a/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.ts b/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.ts index 46ebca1..fb51028 100644 --- a/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.ts +++ b/ng-seed/src/app/appoinment/appoinments/dialog-box/dialog-box.component.ts @@ -109,6 +109,7 @@ export class DialogBoxComponent implements OnInit { findSlotIndex: any; frontDeskChoosedPractiID: any; practiId: any; + isSubmitting: boolean = false; constructor(private notifierService: NotifierService,private router: Router,private formBuilder: FormBuilder, public _cus:CustomersService, public dialogRef: MatDialogRef,public _api:ConsultantService, public _con:ConsultantService, @Inject(MAT_DIALOG_DATA) public data: UsersData,public _app:AppointmentsService,public end_user:EndUserService) { @@ -434,6 +435,8 @@ export class DialogBoxComponent implements OnInit { if (!this.form.valid) { return; } + + this.isSubmitting = true; console.log(this.form.value,this.slotsResult,this.days[this.clicks]); let userId if(this.user_role != 'FRONTDESK'){ @@ -481,11 +484,13 @@ export class DialogBoxComponent implements OnInit { } let param = {data:0,response:res} this.dialogRef.close(param); + this.isSubmitting = false; } }) } }) } + } diff --git a/ng-seed/src/app/appoinment/business/add-business/add-business.component.html b/ng-seed/src/app/appoinment/business/add-business/add-business.component.html index 0421b23..f396642 100644 --- a/ng-seed/src/app/appoinment/business/add-business/add-business.component.html +++ b/ng-seed/src/app/appoinment/business/add-business/add-business.component.html @@ -120,7 +120,11 @@
- + +
diff --git a/ng-seed/src/app/appoinment/business/add-business/add-business.component.scss b/ng-seed/src/app/appoinment/business/add-business/add-business.component.scss index c5845d4..fc15ae8 100644 --- a/ng-seed/src/app/appoinment/business/add-business/add-business.component.scss +++ b/ng-seed/src/app/appoinment/business/add-business/add-business.component.scss @@ -83,4 +83,10 @@ input[type=file]::file-selector-button { .imgSizeValidation{ color: red; font-family: Didact Gothic, sans serif; - } \ No newline at end of file + } + .mat-green:disabled { + /* Styles for the button when it's disabled */ + background-color: gray !important; /* Change the background color to gray */ + color: white !important; /* Change the text color to white */ + /* Add any other styling as desired */ +} \ No newline at end of file diff --git a/ng-seed/src/app/appoinment/business/add-business/add-business.component.ts b/ng-seed/src/app/appoinment/business/add-business/add-business.component.ts index 4a94c58..f3b26cc 100644 --- a/ng-seed/src/app/appoinment/business/add-business/add-business.component.ts +++ b/ng-seed/src/app/appoinment/business/add-business/add-business.component.ts @@ -42,6 +42,7 @@ export class AddBusinessComponent implements OnInit { selectedFiles: any; currentFileUpload: any; countryevent:any=[]; + isSubmitting: boolean = false; private apiUrl = environment.apiEndpoint; constructor(private http: HttpClient,private notifierService: NotifierService,private router: Router,private formBuilder: FormBuilder, public dialogRef: MatDialogRef, @@ -253,6 +254,7 @@ export class AddBusinessComponent implements OnInit { console.log("check") return; } + this.isSubmitting = true // this.formData.append('image', this.currentFileUpload); // console.log(this.formData.getAll('image')); if(this.action == 'Update'){ @@ -271,6 +273,7 @@ export class AddBusinessComponent implements OnInit { this.formData.append('currency',tmp.currency) console.log(this.formData) this.dialogRef.close({event:this.action,data:this.formData,admincheck:tmp.admin_checked}); + this.isSubmitting = false // console.log(this.form.value); // console.log(this.action,this.local_data) } diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html index 0d5f780..7f42d4b 100644 --- a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html @@ -109,20 +109,24 @@ - - My Profile +
+
+ My Profile +
+
+
Profile - ({{usersList.userName}}) - +
-
+
diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts index c14c0a8..f5de1be 100644 --- a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts @@ -529,10 +529,16 @@ unavailability(action,obj) { }); dialogRef.afterClosed().subscribe(result => { console.log(result) - + let skillsFilterRemove = result + // skillsFilterRemove.forEach(element => { + // console.log(element) + let filteredArray = skillsFilterRemove.skills.filter(value => value !== null); + console.log(filteredArray) + // }); console.log(this.skills) if(result != undefined){ - this.skills = result.skills + this.skills = filteredArray + console.log(this.skills) this.notifierService.notify('success', 'Skills Added Successfully'); } diff --git a/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.html b/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.html index 57b6ede..27bd9ec 100644 --- a/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.html +++ b/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.html @@ -39,15 +39,19 @@ Description - + Description is required Sure to delete {{local_data.servicesName}}?
-
- +
+ + -
+
\ No newline at end of file diff --git a/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.scss b/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.scss index c50ea44..4a321f7 100644 --- a/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.scss +++ b/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.scss @@ -8,4 +8,11 @@ } .mat-pane{ width: 20rem; +} + +.mat-green:disabled { + /* Styles for the button when it's disabled */ + background-color: gray !important; /* Change the background color to gray */ + color: white !important; /* Change the text color to white */ + /* Add any other styling as desired */ } \ No newline at end of file diff --git a/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.ts b/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.ts index a7230a7..8f9e679 100644 --- a/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.ts +++ b/ng-seed/src/app/appoinment/service-list-details/add-service/add-service.component.ts @@ -19,6 +19,7 @@ export class AddServiceComponent implements OnInit { action:string; public durationTime = [{'time':'15'},{'time':'30'},{'time':'45'},{'time':'60'},{'time':'75'},{'time':'90'},{'time':'105'},{'time':'120'},{'time':'135'},{'time':'150'},{'time':'165'},{'time':'180'}] currencySymbol: any; + isSubmitting: boolean = false; constructor(private router: Router,private formBuilder: FormBuilder, public dialogRef: MatDialogRef, @Optional() @Inject(MAT_DIALOG_DATA) public data: UsersData) { @@ -63,7 +64,9 @@ ngOnInit() { console.log("check") return; } + this.isSubmitting = true this.dialogRef.close({event:this.action,data:tmp}); + this.isSubmitting = false console.log(this.form.value); console.log(this.action,this.local_data) } diff --git a/ng-seed/src/app/appoinment/user/add-user/add-user.component.html b/ng-seed/src/app/appoinment/user/add-user/add-user.component.html index e0efdd6..894a598 100644 --- a/ng-seed/src/app/appoinment/user/add-user/add-user.component.html +++ b/ng-seed/src/app/appoinment/user/add-user/add-user.component.html @@ -102,7 +102,11 @@ -->
- + +
diff --git a/ng-seed/src/app/appoinment/user/add-user/add-user.component.scss b/ng-seed/src/app/appoinment/user/add-user/add-user.component.scss index 939eba3..e6abae2 100644 --- a/ng-seed/src/app/appoinment/user/add-user/add-user.component.scss +++ b/ng-seed/src/app/appoinment/user/add-user/add-user.component.scss @@ -67,4 +67,11 @@ input[type=file]::file-selector-button { width: 100%; overflow: hidden; } - } \ No newline at end of file + } + + .mat-green:disabled { + /* Styles for the button when it's disabled */ + background-color: gray !important; /* Change the background color to gray */ + color: white !important; /* Change the text color to white */ + /* Add any other styling as desired */ +} \ No newline at end of file diff --git a/ng-seed/src/app/appoinment/user/add-user/add-user.component.ts b/ng-seed/src/app/appoinment/user/add-user/add-user.component.ts index ea54d01..fcb7b05 100644 --- a/ng-seed/src/app/appoinment/user/add-user/add-user.component.ts +++ b/ng-seed/src/app/appoinment/user/add-user/add-user.component.ts @@ -40,6 +40,7 @@ export class AddUserComponent implements OnInit { serviceCheckedData: any = []; assignedServiceValue: any = []; userList: any = []; + isSubmitting: boolean = false; constructor(private http: HttpClient,private notifierService: NotifierService,private router: Router,private formBuilder: FormBuilder, public dialogRef: MatDialogRef, @Optional() @Inject(MAT_DIALOG_DATA) public data: UsersData,public _bus:BusinessService,public _ser:ApiServiceService) { @@ -78,7 +79,7 @@ export class AddUserComponent implements OnInit { ),],valData), // password: new FormControl('', [Validators.required, Validators.minLength(6)]), password: new FormControl('', [Validators.required,Validators.pattern( - '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{16,}$' + '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,16}$' )]), logo: new FormControl('', null), // confirmPassword: new FormControl('', [Validators.required, Validators.minLength(6)]), @@ -220,6 +221,7 @@ export class AddUserComponent implements OnInit { if (!this.form.valid) { return; } + this.isSubmitting = true let tmp = this.form.value tmp.id = this.local_data.id console.log(tmp,this.formData.getAll('image')); @@ -243,6 +245,7 @@ export class AddUserComponent implements OnInit { // this.formData.append('confirmPassword', tmp.password); // tmp.confirmPassword = this.local_data.confirmPassword this.dialogRef.close({event:this.action,data: this.formData,role:this.form.value.role}); + this.isSubmitting = false console.log(this.formData,this.form.value); console.log(this.action,this.local_data) } diff --git a/ng-seed/src/app/session/reset-password/reset-password.component.ts b/ng-seed/src/app/session/reset-password/reset-password.component.ts index bb4d5d8..87b8ee3 100644 --- a/ng-seed/src/app/session/reset-password/reset-password.component.ts +++ b/ng-seed/src/app/session/reset-password/reset-password.component.ts @@ -31,10 +31,10 @@ export class ResetPasswordComponent implements OnInit { this.form = new FormGroup({ password: new FormControl('', [Validators.required,Validators.pattern( - '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{16,}$' + '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,16}$' )]), password2: new FormControl('', [Validators.required,Validators.pattern( - '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{16,}$' + '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,16}$' )]), }); } diff --git a/ng-seed/src/environments/environment.ts b/ng-seed/src/environments/environment.ts index 8ada58d..108cd84 100644 --- a/ng-seed/src/environments/environment.ts +++ b/ng-seed/src/environments/environment.ts @@ -10,9 +10,9 @@ export const environment = { // apiEndpoint:'http://192.168.1.19:8080/api/', // apiEndpoint:'https://api.venbait.in/api/', // apiEndpoint:'http://venbainfotech.com:5000/api/', -// apiEndpoint:'http://192.168.1.10:8080/api/', + apiEndpoint:'http://192.168.1.10:8080/api/', - apiEndpoint:'https://api.venbait.in/api/', + // apiEndpoint:'https://api.venbait.in/api/', //EndUser URL endUserUrl: window.location.origin+'/#/customer/',