Merge pull request #13160 from deaflynx/fix/js-resource-module-style

JavaScript library style enhancement
This commit is contained in:
Igor Kulikov 2025-04-10 18:02:28 +03:00 committed by GitHub
commit 9b29e69db4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -80,6 +80,7 @@
(fileNameChanged)="entityForm?.get('fileName').patchValue($event)"> (fileNameChanged)="entityForm?.get('fileName').patchValue($event)">
</tb-file-input> </tb-file-input>
<tb-js-func *ngIf="entityForm.get('resourceSubType').value === ResourceSubType.MODULE" <tb-js-func *ngIf="entityForm.get('resourceSubType').value === ResourceSubType.MODULE"
[helpPopupStyle]="{ width: '1000px' }"
helpId="resource/js-resource-module_fn" helpId="resource/js-resource-module_fn"
formControlName="content" formControlName="content"
required required
@ -91,8 +92,7 @@
<label class="tb-title no-padding tb-required" <label class="tb-title no-padding tb-required"
[class.tb-error]="entityForm.get('content').invalid && entityForm.get('content').touched" [class.tb-error]="entityForm.get('content').invalid && entityForm.get('content').touched"
style="font-size: 16px;"> style="font-size: 16px;">
{{ 'javascript.module-script' | translate }} {{ 'javascript.module-script' | translate }}</label>
</label>
<tb-file-input *ngIf="(isAdd || isEdit)" <tb-file-input *ngIf="(isAdd || isEdit)"
asButton asButton
uploadButtonText="{{ 'javascript.upload-from-file' | translate }}" uploadButtonText="{{ 'javascript.upload-from-file' | translate }}"

View File

@ -85,4 +85,8 @@
color: rgb(49, 132, 149); color: rgb(49, 132, 149);
} }
} }
label.tb-title.tb-required::after {
content: "*";
}
} }