@idsoftsource/initial-process 1.3.2 → 1.3.3
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.
|
@@ -2177,16 +2177,21 @@ class EducationComponent {
|
|
|
2177
2177
|
this.fileChanged);
|
|
2178
2178
|
}
|
|
2179
2179
|
removeFile() {
|
|
2180
|
-
// clear selected
|
|
2180
|
+
// clear selected file
|
|
2181
2181
|
this.fileData = null;
|
|
2182
|
-
// clear UI
|
|
2182
|
+
// clear UI
|
|
2183
2183
|
this.fileName = null;
|
|
2184
|
-
//
|
|
2185
|
-
this.fileChanged = true;
|
|
2186
|
-
// clear existing file from model (this will send null to backend)
|
|
2184
|
+
// clear model
|
|
2187
2185
|
this.model.fileId = null;
|
|
2188
2186
|
this.model.fileUrl = null;
|
|
2189
2187
|
this.model.fileName = null;
|
|
2188
|
+
// ✅ clear input value (IMPORTANT FIX)
|
|
2189
|
+
const fileInput = document.querySelector('input[type="file"]');
|
|
2190
|
+
if (fileInput) {
|
|
2191
|
+
fileInput.value = '';
|
|
2192
|
+
}
|
|
2193
|
+
// mark as changed
|
|
2194
|
+
this.fileChanged = true;
|
|
2190
2195
|
}
|
|
2191
2196
|
saveFile() {
|
|
2192
2197
|
if (this.educationForm.invalid) {
|
|
@@ -2699,6 +2704,10 @@ class CertificationComponent {
|
|
|
2699
2704
|
this.certificateForm.markAllAsTouched();
|
|
2700
2705
|
return;
|
|
2701
2706
|
}
|
|
2707
|
+
if (!this.selectedDocumentId) {
|
|
2708
|
+
console.log('No document selected');
|
|
2709
|
+
return;
|
|
2710
|
+
}
|
|
2702
2711
|
// ✅ STOP unnecessary API
|
|
2703
2712
|
if (this.editingIndex >= 0 && !this.hasChanges()) {
|
|
2704
2713
|
console.log('No changes → API skipped');
|
|
@@ -2754,12 +2763,21 @@ class CertificationComponent {
|
|
|
2754
2763
|
}
|
|
2755
2764
|
}
|
|
2756
2765
|
removeFile() {
|
|
2766
|
+
// clear selected file
|
|
2757
2767
|
this.fileData = null;
|
|
2768
|
+
// clear UI
|
|
2758
2769
|
this.fileName = null;
|
|
2770
|
+
// clear model
|
|
2759
2771
|
this.model.fileId = null;
|
|
2760
2772
|
this.model.fileUrl = null;
|
|
2761
2773
|
this.model.fileName = null;
|
|
2762
|
-
|
|
2774
|
+
// ✅ clear input value (IMPORTANT FIX)
|
|
2775
|
+
const fileInput = document.querySelector('input[type="file"]');
|
|
2776
|
+
if (fileInput) {
|
|
2777
|
+
fileInput.value = '';
|
|
2778
|
+
}
|
|
2779
|
+
// mark as changed
|
|
2780
|
+
this.fileChanged = true;
|
|
2763
2781
|
}
|
|
2764
2782
|
hasChanges() {
|
|
2765
2783
|
const current = this.certificateForm.getRawValue();
|
|
@@ -3630,6 +3648,7 @@ class SkillsComponent {
|
|
|
3630
3648
|
const saved = profileSignal();
|
|
3631
3649
|
this.userdata = saved;
|
|
3632
3650
|
console.log(this.userdata);
|
|
3651
|
+
this.user = this.userService.getUserDetails();
|
|
3633
3652
|
this.userId = await this.tokenService?.getUserId();
|
|
3634
3653
|
this.emailId = await this.tokenService?.getUserEmail();
|
|
3635
3654
|
this.showForm = false;
|
|
@@ -4155,6 +4174,10 @@ class LicensesComponent {
|
|
|
4155
4174
|
this.certificateForm.markAllAsTouched();
|
|
4156
4175
|
return;
|
|
4157
4176
|
}
|
|
4177
|
+
if (!this.selectedDocumentId) {
|
|
4178
|
+
console.log('No document selected');
|
|
4179
|
+
return;
|
|
4180
|
+
}
|
|
4158
4181
|
// ✅ SKIP API if no changes
|
|
4159
4182
|
if (this.editingIndex >= 0 && !this.hasChanges()) {
|
|
4160
4183
|
console.log('No changes → API skipped');
|
|
@@ -4213,11 +4236,20 @@ class LicensesComponent {
|
|
|
4213
4236
|
}
|
|
4214
4237
|
}
|
|
4215
4238
|
removeFile() {
|
|
4239
|
+
// clear selected file
|
|
4216
4240
|
this.fileData = null;
|
|
4241
|
+
// clear UI
|
|
4217
4242
|
this.fileName = null;
|
|
4243
|
+
// clear model
|
|
4218
4244
|
this.model.fileId = null;
|
|
4219
4245
|
this.model.fileUrl = null;
|
|
4220
4246
|
this.model.fileName = null;
|
|
4247
|
+
// ✅ clear input value (IMPORTANT FIX)
|
|
4248
|
+
const fileInput = document.querySelector('input[type="file"]');
|
|
4249
|
+
if (fileInput) {
|
|
4250
|
+
fileInput.value = '';
|
|
4251
|
+
}
|
|
4252
|
+
// mark as changed
|
|
4221
4253
|
this.fileChanged = true;
|
|
4222
4254
|
}
|
|
4223
4255
|
hasChanges() {
|
|
@@ -28723,7 +28755,12 @@ class WorkexperienceComponent {
|
|
|
28723
28755
|
this.model.fileId = null;
|
|
28724
28756
|
this.model.fileUrl = null;
|
|
28725
28757
|
this.model.fileName = null;
|
|
28726
|
-
// ✅
|
|
28758
|
+
// ✅ clear input value (IMPORTANT FIX)
|
|
28759
|
+
const fileInput = document.querySelector('input[type="file"]');
|
|
28760
|
+
if (fileInput) {
|
|
28761
|
+
fileInput.value = '';
|
|
28762
|
+
}
|
|
28763
|
+
// mark as changed
|
|
28727
28764
|
this.fileChanged = true;
|
|
28728
28765
|
}
|
|
28729
28766
|
edit(index) {
|