Skip to content

Commit

Permalink
Fix client build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-glombik committed Nov 28, 2024
1 parent ed4f33e commit 486e152
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main/webapp/app/lecture/lecture-attachments.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h4 jhiTranslate="artemisApp.lecture.attachments.attachments"></h4>
<form [formGroup]="form">
<div class="row">
<div class="col-12">
@if (!attachmentToBeUpdatedOrCreated().id) {
@if (!attachmentToBeUpdatedOrCreated()!.id) {
<h4 jhiTranslate="artemisApp.lecture.attachments.newAttachment"></h4>
} @else {
<h4 jhiTranslate="artemisApp.lecture.attachments.editAttachment"></h4>
Expand All @@ -143,7 +143,7 @@ <h4 jhiTranslate="artemisApp.lecture.attachments.editAttachment"></h4>
</div>
<div class="form-group">
<label
for="lectureAttachmentInput{{ attachmentToBeUpdatedOrCreated().name }}"
for="lectureAttachmentInput{{ attachmentToBeUpdatedOrCreated()!.name }}"
class="form-control-label"
jhiTranslate="artemisApp.lecture.attachments.file"
>File</label
Expand All @@ -157,7 +157,7 @@ <h4 jhiTranslate="artemisApp.lecture.attachments.editAttachment"></h4>
<div class="custom-file overflow-ellipsis">
<input
#fileInput
id="lectureAttachmentInput{{ attachmentToBeUpdatedOrCreated().name }}"
id="lectureAttachmentInput{{ attachmentToBeUpdatedOrCreated()!.name }}"
type="file"
class="custom-file-input"
[accept]="acceptedFileExtensionsFileBrowser"
Expand All @@ -179,7 +179,7 @@ <h4 jhiTranslate="artemisApp.lecture.attachments.editAttachment"></h4>
<div class="form-group">
<jhi-date-time-picker labelName="{{ 'artemisApp.lecture.attachments.releaseDate' | artemisTranslate }}" formControlName="releaseDate" />
</div>
@if (attachmentToBeUpdatedOrCreated().id) {
@if (attachmentToBeUpdatedOrCreated()!.id) {
<div class="form-group">
<label for="attachmentName" jhiTranslate="artemisApp.lecture.attachments.notificationText"></label>
<input
Expand All @@ -205,8 +205,7 @@ <h4 jhiTranslate="artemisApp.lecture.attachments.editAttachment"></h4>
</div>
</div>
</form>
}
@if (!attachmentToBeUpdatedOrCreated()) {
} @else {
<div class="row">
<div class="col-12">
<button type="button" (click)="addAttachment()" class="btn btn-primary" id="add-attachment">
Expand Down

0 comments on commit 486e152

Please sign in to comment.