Skip to content
Snippets Groups Projects
Commit aeb0444c authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Adjust moderator model to backend

parent f7ad3d44
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<span class="fill-remaining-space"></span> <span class="fill-remaining-space"></span>
</div> </div>
<h3 *ngIf="moderators.length === 0">No moderators yet.</h3> <h3 *ngIf="moderators.length === 0">No moderators yet.</h3>
<mat-list> <mat-list *ngIf="moderators.length > 0">
<mat-list-item *ngFor="let moderator of moderators">{{moderator.userId}}</mat-list-item> <mat-list-item *ngFor="let moderator of moderators">{{moderator.userId}}</mat-list-item>
</mat-list> </mat-list>
</div> </div>
...@@ -26,3 +26,7 @@ mat-form-field { ...@@ -26,3 +26,7 @@ mat-form-field {
font-size: 45px; font-size: 45px;
line-height: 100% !important; line-height: 100% !important;
} }
.mat-list-item {
color: var(--on-surface);
}
...@@ -29,7 +29,6 @@ export class ModeratorsComponent implements OnInit { ...@@ -29,7 +29,6 @@ export class ModeratorsComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.getModerators(); this.getModerators();
console.log(this.moderators);
} }
getModerators() { getModerators() {
......
export enum ModeratorRole {
EDITING_MODERATOR,
EXECUTIVE_MODERATOR
}
import { ModeratorRole } from './moderator-roles.enum';
export class Moderator { export class Moderator {
userId: string; userId: string;
loginId: string; roles: ModeratorRole[];
constructor( constructor(
userId: string = '', userId: string = '',
loginId: string = '' roles: ModeratorRole[] = []
) { ) {
this.userId = userId; this.userId = userId;
this.loginId = loginId; this.roles = roles;
} }
} }
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"description": "Beschreibung der Session", "description": "Beschreibung der Session",
"present": "Präsentieren", "present": "Präsentieren",
"moderators": "Moderatoren", "moderators": "Moderatoren",
"moderator-email": "E-Mail des Moderatoren", "moderator-email": "E-Mail des Moderators",
"session-settings": "Session-Verwaltung", "session-settings": "Session-Verwaltung",
"general": "Allgemein", "general": "Allgemein",
"threshold": "Schwellenwert für sichtbare Kommentare: ", "threshold": "Schwellenwert für sichtbare Kommentare: ",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment