From d3311aea4bec102465d21e593f3c1a14a54f9583 Mon Sep 17 00:00:00 2001 From: Paul Rangger <48455539+PaRangger@users.noreply.github.com> Date: Sat, 16 Nov 2024 10:23:53 +0100 Subject: [PATCH] Communication: Fix an issue that stops channels from loading messages (#9745) --- .../shared/metis/posting-header/posting-header.directive.ts | 4 ++++ src/main/webapp/i18n/de/metis.json | 6 ++++-- src/main/webapp/i18n/en/metis.json | 6 ++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/app/shared/metis/posting-header/posting-header.directive.ts b/src/main/webapp/app/shared/metis/posting-header/posting-header.directive.ts index e6deddb407b8..f07ef5e1ed04 100644 --- a/src/main/webapp/app/shared/metis/posting-header/posting-header.directive.ts +++ b/src/main/webapp/app/shared/metis/posting-header/posting-header.directive.ts @@ -95,6 +95,10 @@ export abstract class PostingHeaderDirective implements OnIni this.userAuthority = 'tutor'; this.userRoleBadge = roleBadgeTranslationPath + this.userAuthority; this.userAuthorityTooltip = toolTipTranslationPath + this.userAuthority; + } else { + this.userAuthority = 'student'; + this.userRoleBadge = 'artemisApp.metis.userRoles.deleted'; + this.userAuthorityTooltip = 'artemisApp.metis.userAuthorityTooltips.deleted'; } } } diff --git a/src/main/webapp/i18n/de/metis.json b/src/main/webapp/i18n/de/metis.json index d7fa19710c0d..f88d74bce4f9 100644 --- a/src/main/webapp/i18n/de/metis.json +++ b/src/main/webapp/i18n/de/metis.json @@ -142,12 +142,14 @@ "userRoles": { "instructor": "Instruktor", "tutor": "Tutor", - "student": "Student" + "student": "Student", + "deleted": "Gelöscht" }, "userAuthorityTooltips": { "instructor": "Lehrkraft: Verantwortlich für die Kursdurchführung.", "tutor": "Tutor:in: Verantwortlich für die Unterstützung der Studierenden bei ihren Fragen zum Kurs und zu den Übungen.", - "student": "Studierende:r: Nimmt an Kursen und Übungen teil und stellt Fragen." + "student": "Studierende:r: Nimmt an Kursen und Übungen teil und stellt Fragen.", + "deleted": "Gelöscht: Nutzer:in wurde gelöscht." } } } diff --git a/src/main/webapp/i18n/en/metis.json b/src/main/webapp/i18n/en/metis.json index bfb25d30252b..034f9f3b624a 100644 --- a/src/main/webapp/i18n/en/metis.json +++ b/src/main/webapp/i18n/en/metis.json @@ -142,12 +142,14 @@ "userRoles": { "instructor": "Instructor", "tutor": "Tutor", - "student": "Student" + "student": "Student", + "deleted": "Deleted" }, "userAuthorityTooltips": { "instructor": "Instructor: Responsible for course conduction.", "tutor": "Tutor: Responsible for helping users with their questions about the course and exercises.", - "student": "Student: Takes courses, participates in exercises, and asks questions." + "student": "Student: Takes courses, participates in exercises, and asks questions.", + "deleted": "Deleted: This user was deleted." } } }