Skip to content
Snippets Groups Projects
Commit e6f02fa7 authored by paf's avatar paf
Browse files

include mode 'monitor-study'

parent 8dba5c2a
No related branches found
No related tags found
No related merge requests found
<td>
<ng-container *ngIf="getMode(testStatus.mode) as mode" matTooltip="{{mode.modeLabel}}">
{{testStatus.personId}}|{{testStatus.testId}}
</td>
<td>
<ng-container *ngIf="getMode(testStatus.mode) as mode" >
<i class="material-icons" *ngIf="mode.modeId === 'HOT'">face</i>
<i class="material-icons" *ngIf="mode.modeId === 'REVIEW'">rate_review</i>
......@@ -7,6 +11,7 @@
<i class="material-icons" *ngIf="mode.modeId === 'DEMO'">ondemand_video</i>
<i class="material-icons" *ngIf="mode.modeId === 'monitor-group'">supervisor_account</i>
<i class="material-icons" *ngIf="mode.modeId === 'monitor-workspace'">supervisor_account</i>
<i class="material-icons" *ngIf="mode.modeId === 'monitor-study'">supervisor_account</i>
</ng-container>
{{testStatus.personLabel}}
</td>
......@@ -77,7 +82,7 @@
<ng-container *ngFor="let testletOrUnit of testlet.children; trackBy: trackUnits" [ngSwitch]="getTestletType(testletOrUnit)">
<span *ngSwitchCase="'unit'"
class="{{(testStatus.unitName === testletOrUnit.id) ? 'unit current': 'unit'}}"
[class]="(testStatus.unitName === testletOrUnit.id) ? 'unit current': 'unit'"
matTooltip="{{testletOrUnit.label}}"
matTooltipPosition="above"
>{{testletOrUnit.labelShort || "&nbsp;"}}
......
......@@ -114,23 +114,17 @@ export class TestViewComponent implements OnInit, OnDestroy, OnChanges {
getMode(modeString: string): {modeId: string, modeLabel: string} {
if (modeString === 'monitor-group') {
const untranslatedModes = ['monitor-group', 'monitor-workspace', 'monitor-study'];
return {
modeId: modeString,
modeLabel: 'Testleiter'
}
}
if (modeString === 'monitor-workspace') {
if (untranslatedModes.indexOf(modeString) > -1) {
return {
modeId: modeString,
modeLabel: modeString
modeLabel: 'Testleiter'
}
}
const testMode = new TestMode(modeString);
let testMode = new TestMode(modeString);
return {
modeId: testMode.modeId,
modeLabel: testMode.modeLabel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment