iptdevs-design-system 3.1.206 → 3.1.207

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.
@@ -4359,12 +4359,12 @@ class CodFormStepFiveComponent extends CodFormSteps {
4359
4359
  if (!this.termsCheckboxStatus)
4360
4360
  this.errorMessage = 'Debe marcar la casilla de términos y condiciones.';
4361
4361
  });
4362
- // if (this.userRole === 30 || this.userRole === 31 || this.userRole === 32) this.sendFormMsg = 'Editar COD'; // Roles Administrativos
4362
+ // if (this.userRole === 30 || this.userRole === 31 || this.userRole === 32) this.sendFormMsg = 'Editar COD';
4363
4363
  if (this.userRole === 30 || this.userRole === 31 || this.userRole === 32 ||
4364
4364
  this.userRole === 40 || this.userRole === 41 || this.userRole === 42 ||
4365
4365
  this.userRole === 50 || this.userRole === 51 || this.userRole === 52 ||
4366
4366
  this.userRole === 1)
4367
- this.sendFormMsg = 'Crear COD'; // Roles comerciales
4367
+ this.isEditCod ? this.sendFormMsg = 'Editar COD' : this.sendFormMsg = 'Crear COD';
4368
4368
  if (changes['initialData']) {
4369
4369
  if (this.initialData != null) {
4370
4370
  if (this.initialData.student != null) {
@@ -4449,20 +4449,12 @@ class CodFormStepFiveComponent extends CodFormSteps {
4449
4449
  this.codFormStepFive.markAllAsTouched();
4450
4450
  if (this.codFormStepFive.invalid || this.termsCheckboxStatus === false)
4451
4451
  return;
4452
- if (this.isEditCod) {
4453
- if (this.userRole == 30 || this.userRole == 31 || this.userRole == 32 ||
4454
- this.userRole == 40 || this.userRole == 41 || this.userRole == 42 ||
4455
- this.userRole == 50 || this.userRole == 51 || this.userRole == 52 ||
4456
- this.userRole == 1)
4457
- this.action.emit('update');
4458
- }
4459
- else {
4460
- if (this.userRole == 30 || this.userRole == 31 || this.userRole == 32 ||
4461
- this.userRole == 40 || this.userRole == 41 || this.userRole == 42 ||
4462
- this.userRole == 50 || this.userRole == 51 || this.userRole == 52 ||
4463
- this.userRole == 1)
4464
- this.action.emit('create');
4465
- }
4452
+ console.log(this.isEditCod);
4453
+ if (this.userRole == 30 || this.userRole == 31 || this.userRole == 32 ||
4454
+ this.userRole == 40 || this.userRole == 41 || this.userRole == 42 ||
4455
+ this.userRole == 50 || this.userRole == 51 || this.userRole == 52 ||
4456
+ this.userRole == 1)
4457
+ this.isEditCod ? this.action.emit('update') : this.action.emit('create');
4466
4458
  }
4467
4459
  cleanStorage() {
4468
4460
  sessionStorage.clear();