Commit fc6d4f56 authored by Carelle Djuffo Nzangue's avatar Carelle Djuffo Nzangue
Browse files

added number of questions on question wall

parent 5dadbcfe
......@@ -12,6 +12,12 @@
<ars-fill ars-flex-box>
<ars-fill></ars-fill>
<ars-col ars-btn-wrp [xp]="16" [extra]="true">
<button mat-menu-item aria-labelledby="filter-lbl-bookmark">
{{comments.length}} Question{{comments.length >1?"s": ""}} by {{userList.length}} {{userList.length>1?"s":""}}User
</button>
<mat-menu #sortMenu>
<button mat-menu-item (click)="sortTime(true)" aria-labelledby="sort-lbl-new">{{'question-wall.sort-new' | translate}}</button>
<button mat-menu-item (click)="sortTime()" aria-labelledby="sort-lbl-old">{{'question-wall.sort-old' | translate}}</button>
......@@ -22,7 +28,7 @@
<mat-icon class="star">grade</mat-icon>
<span>{{'question-wall.filter-favorite' | translate}}</span>
</button>
<button mat-menu-item (click)="filterBookmark()" aria-labelledby="filter-lbl-bookmark">
<mat-icon>bookmark</mat-icon>
<span>{{'question-wall.filter-bookmark' | translate}}</span>
......
......@@ -87,6 +87,7 @@ export class QuestionWallComponent implements OnInit, AfterViewInit, OnDestroy {
this.comments.push(comment);
this.setTimePeriod(this.period);
});
this.createUserMap();
});
this.roomService.getRoom(this.roomId).subscribe(e => {
this.room = e;
......@@ -101,6 +102,7 @@ export class QuestionWallComponent implements OnInit, AfterViewInit, OnDestroy {
if (this.focusIncommingComments) {
setTimeout(() => this.focusComment(qwComment), 5);
}
this.createUserMap();
});
});
});
......
......@@ -11,7 +11,7 @@
"a11y-filter_list": "Option Fragen zu filtern",
"a11y-grade": "Filtert alle Bonus Fragen",
"a11y-moderator": "Filtert alle Fragen von Moderatoren",
"a11y-lecturer": "Filtert alle Fragen von Dozenten",
"a11y-lecturer": "Filtert alle Fragen von Dozenten",
"a11y-bookmark": "Filtert alle Fragen mit Lesezeichen",
"a11y-keyboard_arrow_down": "Sortiert die Fragen nach absteigenden Bewertungen",
"a11y-keyboard_arrow_up": "Sortiert die Fragen nach aufsteigenden Bewertungen",
......@@ -207,6 +207,8 @@
"autofocus-off-lbl": "Automatische Fokussierung neuer Fragen beenden",
"autofocus-on-lbl": "Neue Fragen automatisch fokussieren",
"prev-comment-lbl": "Vorherige Frage",
"next-comment-lbl": "Nächste Frage"
"next-comment-lbl": "Nächste Frage",
"frage-steller-lbl": "Fragesteller",
"benutzer-frage-steller": "Benutzer"
}
}
......@@ -21,7 +21,7 @@
"a11y-filter_list": "Option to filter questions",
"a11y-grade": "Filters all bonus questions",
"a11y-moderator": "Filters all moderator questions",
"a11y-lecturer": "Filters all lecturer questions",
"a11y-lecturer": "Filters all lecturer questions",
"a11y-bookmark": "Filters all bookmark questions",
"a11y-keyboard_arrow_down": "Sorts questions by descending votes",
"a11y-keyboard_arrow_up": "Sorts questions by ascending votes",
......@@ -213,6 +213,7 @@
"autofocus-off-lbl": "Stop automatic focusing of new questions",
"autofocus-on-lbl": "Turn on automatic focusing of new questions",
"prev-comment-lbl": "Previous question",
"next-comment-lbl": "Next question"
"next-comment-lbl": "Next question",
}
}
Markdown is supported
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