small ui fix
This commit is contained in:
parent
839f74868e
commit
49e6e9ac9f
|
@ -55,7 +55,7 @@
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="formGroup.get('descriptionTemplateId').hasError('backendError')">{{formGroup.get('descriptionTemplateId').getError('backendError').message}}</mat-error>
|
<mat-error *ngIf="formGroup.get('descriptionTemplateId').hasError('backendError')">{{formGroup.get('descriptionTemplateId').getError('backendError').message}}</mat-error>
|
||||||
<mat-error *ngIf="formGroup.get('label').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
<mat-error *ngIf="formGroup.get('descriptionTemplateId').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -575,7 +575,10 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
|
||||||
// this.selectedSystemFields = this.selectedSystemFieldDisabled();
|
// this.selectedSystemFields = this.selectedSystemFieldDisabled();
|
||||||
this.descriptionEditorService.setValidationErrorModel(this.editorModel.validationErrorModel);
|
this.descriptionEditorService.setValidationErrorModel(this.editorModel.validationErrorModel);
|
||||||
if (this.editorModel.status == DescriptionStatus.Finalized || this.isDeleted) {
|
if (this.editorModel.status == DescriptionStatus.Finalized || this.isDeleted) {
|
||||||
|
this.viewOnly = true;
|
||||||
this.formGroup.disable();
|
this.formGroup.disable();
|
||||||
|
}else{
|
||||||
|
this.viewOnly = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.registerFormListeners();
|
this.registerFormListeners();
|
||||||
|
@ -618,7 +621,7 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.persistEntity();
|
// this.persistEntity();
|
||||||
}
|
}
|
||||||
|
|
||||||
public delete() {
|
public delete() {
|
||||||
|
|
Loading…
Reference in New Issue