diff --git a/backend/globaleaks/handlers/whistleblower/wbtip.py b/backend/globaleaks/handlers/whistleblower/wbtip.py index b7091cdd9d..c30d62f8c8 100644 --- a/backend/globaleaks/handlers/whistleblower/wbtip.py +++ b/backend/globaleaks/handlers/whistleblower/wbtip.py @@ -80,7 +80,6 @@ def create_comment(session, tid, user_id, content): itip = db_get(session, models.InternalTip, (models.InternalTip.id == user_id, - models.InternalTip.status != 'closed', models.InternalTip.tid == tid)) itip.update_date = itip.last_access = datetime_now() diff --git a/client/app/src/shared/partials/tip-comments/tip-comments.component.html b/client/app/src/shared/partials/tip-comments/tip-comments.component.html index 08be29c4e4..b6e8faa05f 100644 --- a/client/app/src/shared/partials/tip-comments/tip-comments.component.html +++ b/client/app/src/shared/partials/tip-comments/tip-comments.component.html @@ -12,20 +12,18 @@ @if (!collapsed) {
- @if (tipService.tip.status !== 'closed') { -
-
- - {{newCommentContent.length ? newCommentContent.length : '0'}}/4096 -
-
- -
+
+
+ + {{newCommentContent.length ? newCommentContent.length : '0'}}/4096
- } +
+ +
+
@if (tipService.tip.comments && tipService.tip.comments.length) {
@for (comment of getSortedComments(comments | orderBy:'creation_date': true | filter : 'visibility' : key) | slice: (currentCommentsPage-1) * itemsPerPage : (currentCommentsPage-1) * itemsPerPage + itemsPerPage; track comment; let index = $index) { diff --git a/client/app/src/shared/partials/tip-upload-wbfile/tip-upload-wb-file.component.html b/client/app/src/shared/partials/tip-upload-wbfile/tip-upload-wb-file.component.html index 122e538776..43b6afcf47 100644 --- a/client/app/src/shared/partials/tip-upload-wbfile/tip-upload-wb-file.component.html +++ b/client/app/src/shared/partials/tip-upload-wbfile/tip-upload-wb-file.component.html @@ -19,37 +19,35 @@
} - @if (tip.status !== 'closed') { -
-
{{'Upload a file:'|translate}}
-
-
- - {{'Description'|translate}} - - - - - - -
- @if (showError) { -
-
- - } +
+
+ }