@if (messages?.length) {
- @if (suggestions?.length) {
+ @if (
+ suggestions?.length &&
+ userAccepted &&
+ !this.isLoading &&
+ this.active &&
+ (!this.rateLimitInfo?.rateLimit || this.rateLimitInfo?.currentMessageCount !== this.rateLimitInfo?.rateLimit) &&
+ !this.hasActiveStage
+ ) {
@for (suggestion of suggestions; track suggestion) {
diff --git a/src/main/webapp/app/lecture/lecture-attachments.component.html b/src/main/webapp/app/lecture/lecture-attachments.component.html
index 6192f270d64e..82050a7c3efe 100644
--- a/src/main/webapp/app/lecture/lecture-attachments.component.html
+++ b/src/main/webapp/app/lecture/lecture-attachments.component.html
@@ -44,7 +44,6 @@
|
|
|
-
|
|
|
|
@@ -53,25 +52,25 @@
@for (attachment of attachments; track trackId($index, attachment)) {
-
+
{{ attachment.id }}
|
- {{ attachment.name }} |
- {{ attachment.attachmentType }} |
@if (!isDownloadingAttachmentLink) {
{{ attachment.name }}
- }
- @if (isDownloadingAttachmentLink === attachment.link) {
+ } @else if (isDownloadingAttachmentLink === attachment.link) {
{{ 'artemisApp.courseOverview.lectureDetails.isDownloading' | artemisTranslate }}
+ } @else {
+ {{ attachment.name }}
}
|
+ {{ attachment.attachmentType }} |
{{ attachment.releaseDate | artemisDate }} |
{{ attachment.uploadDate | artemisDate }} |
@@ -91,7 +90,7 @@
}
|
- @if (attachmentToBeCreated?.id === attachment?.id) {
+ @if (attachmentToBeUpdatedOrCreated()?.id === attachment?.id) {
}
@@ -125,11 +124,11 @@
}
- @if (attachmentToBeCreated) {
-
+ @if (attachmentToBeUpdatedOrCreated()) {
+