@idsoftsource/initial-process 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29676,6 +29676,16 @@ class InitialProcessComponent {
|
|
|
29676
29676
|
reader.readAsDataURL(this.fileDataUser);
|
|
29677
29677
|
event.target.value = null;
|
|
29678
29678
|
}
|
|
29679
|
+
uploadLogo(event) {
|
|
29680
|
+
this.isLogoRequired = false;
|
|
29681
|
+
this.fileDataLogo = event.currentTarget.files[0];
|
|
29682
|
+
console.log(this.fileDataLogo);
|
|
29683
|
+
this.logoName = this.fileDataLogo.name;
|
|
29684
|
+
const reader = new FileReader();
|
|
29685
|
+
reader.readAsDataURL(this.fileDataLogo);
|
|
29686
|
+
event.target.value = null;
|
|
29687
|
+
this.isneeded = false;
|
|
29688
|
+
}
|
|
29679
29689
|
AddressChange(address) {
|
|
29680
29690
|
var doorNumber = address.address_components.find((a) => { return a.types.includes("street_number"); })?.short_name;
|
|
29681
29691
|
doorNumber = doorNumber ? doorNumber : '';
|
|
@@ -29931,16 +29941,6 @@ class InitialProcessComponent {
|
|
|
29931
29941
|
form.get('phoneNumber')
|
|
29932
29942
|
?.setValue(formatted, { emitEvent: false });
|
|
29933
29943
|
}
|
|
29934
|
-
uploadLogo(event) {
|
|
29935
|
-
this.isLogoRequired = false;
|
|
29936
|
-
this.fileDataLogo = event.currentTarget.files[0];
|
|
29937
|
-
console.log(this.fileDataLogo);
|
|
29938
|
-
this.logoName = this.fileDataLogo.name;
|
|
29939
|
-
const reader = new FileReader();
|
|
29940
|
-
reader.readAsDataURL(this.fileDataLogo);
|
|
29941
|
-
event.target.value = null;
|
|
29942
|
-
this.isneeded = false;
|
|
29943
|
-
}
|
|
29944
29944
|
async saveAWSHeadShot() {
|
|
29945
29945
|
if (this.user.headshotFileId) {
|
|
29946
29946
|
this.saveAWSSignature();
|
|
@@ -29950,8 +29950,7 @@ class InitialProcessComponent {
|
|
|
29950
29950
|
return;
|
|
29951
29951
|
try {
|
|
29952
29952
|
const fileExtension = this.fileDataUser.type.split('/')[1] || this.fileDataUser.type.split('/')[0];
|
|
29953
|
-
const fileName =
|
|
29954
|
-
+'.' + fileExtension;
|
|
29953
|
+
const fileName = new uuid().newId() + '.' + fileExtension;
|
|
29955
29954
|
const path = `User/${this.userId}/Profile/`;
|
|
29956
29955
|
const key = path + fileName;
|
|
29957
29956
|
const uploaded = await this.fileService.uploadImageAsync(this.fileDataUser, {
|