Skip to content
Snippets Groups Projects
Commit 44fdeae0 authored by paflov's avatar paflov
Browse files

renames the testMode-option "isMonitorable" to "receiveRemoteCommands", since...

renames the testMode-option "isMonitorable" to "receiveRemoteCommands", since it means precisely that and to distinguish it from the backend's mode capabality 'monitorable'.
parent 814621d3
No related branches found
No related tags found
No related merge requests found
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
"presetCode": "Sollte ein Testabschnitt mit einem Freigabewort geschützt sein, wird dieses bei der Eingabebox schon eingetragen.", "presetCode": "Sollte ein Testabschnitt mit einem Freigabewort geschützt sein, wird dieses bei der Eingabebox schon eingetragen.",
"showTimeLeft": "Sollte eine Maximalzeit für einen Testabschnitt festgelegt sein, wird die verbleibende Zeit angezeigt, auch wenn die Booklet-Konfiguration dies unterbindet.", "showTimeLeft": "Sollte eine Maximalzeit für einen Testabschnitt festgelegt sein, wird die verbleibende Zeit angezeigt, auch wenn die Booklet-Konfiguration dies unterbindet.",
"showUnitMenu": "Die Seite mit der Aufgaben-Übersicht wird erlaubt, auch wenn das Booklet dies unterbindet.", "showUnitMenu": "Die Seite mit der Aufgaben-Übersicht wird erlaubt, auch wenn das Booklet dies unterbindet.",
"isMonitorable": "Kann aus dem Gruppen-Monitor aus gesteuert werden" "receiveRemoteCommands": "Kann aus dem Gruppen-Monitor aus gesteuert werden"
} }
...@@ -12,7 +12,7 @@ export class TestMode { ...@@ -12,7 +12,7 @@ export class TestMode {
presetCode: true; presetCode: true;
showTimeLeft: true; showTimeLeft: true;
showUnitMenu: false; showUnitMenu: false;
isMonitorable: false; receiveRemoteCommands: false;
modeLabel: "Nur Ansicht (Demo)"; modeLabel: "Nur Ansicht (Demo)";
modeId: string = "DEMO"; modeId: string = "DEMO";
...@@ -29,7 +29,7 @@ export class TestMode { ...@@ -29,7 +29,7 @@ export class TestMode {
this.presetCode = modeConfig.config.presetCode; this.presetCode = modeConfig.config.presetCode;
this.showTimeLeft = modeConfig.config.showTimeLeft; this.showTimeLeft = modeConfig.config.showTimeLeft;
this.showUnitMenu = modeConfig.config.showUnitMenu; this.showUnitMenu = modeConfig.config.showUnitMenu;
this.isMonitorable = modeConfig.config.isMonitorable; this.receiveRemoteCommands = modeConfig.config.receiveRemoteCommands;
this.modeLabel = modeConfig.label; this.modeLabel = modeConfig.label;
this.modeId = mode; this.modeId = mode;
} else { } else {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"presetCode": true, "presetCode": true,
"showTimeLeft": true, "showTimeLeft": true,
"showUnitMenu": false, "showUnitMenu": false,
"isMonitorable": false "receiveRemoteCommands": false
} }
}, },
"MONITOR-GROUP": { "MONITOR-GROUP": {
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"presetCode": true, "presetCode": true,
"showTimeLeft": true, "showTimeLeft": true,
"showUnitMenu": false, "showUnitMenu": false,
"isMonitorable": false "receiveRemoteCommands": false
} }
}, },
"HOT": { "HOT": {
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
"presetCode": false, "presetCode": false,
"showTimeLeft": false, "showTimeLeft": false,
"showUnitMenu": false, "showUnitMenu": false,
"isMonitorable": true "receiveRemoteCommands": true
} }
}, },
"REVIEW": { "REVIEW": {
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
"presetCode": true, "presetCode": true,
"showTimeLeft": true, "showTimeLeft": true,
"showUnitMenu": true, "showUnitMenu": true,
"isMonitorable": false "receiveRemoteCommands": false
} }
}, },
"TRIAL": { "TRIAL": {
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
"presetCode": true, "presetCode": true,
"showTimeLeft": false, "showTimeLeft": false,
"showUnitMenu": false, "showUnitMenu": false,
"isMonitorable": false "receiveRemoteCommands": false
} }
} }
} }
...@@ -108,7 +108,7 @@ export class CommandService extends WebsocketBackendService<Command[]> implement ...@@ -108,7 +108,7 @@ export class CommandService extends WebsocketBackendService<Command[]> implement
distinctUntilChanged(), distinctUntilChanged(),
map(CommandService.testStartedOrStopped), map(CommandService.testStartedOrStopped),
filter(testStartedOrStopped => testStartedOrStopped !== ''), filter(testStartedOrStopped => testStartedOrStopped !== ''),
map(testStartedOrStopped => (((testStartedOrStopped === 'started') && (this.tcs.testMode.isMonitorable)) ? `test/${this.tcs.testId}/commands` : '')), map(testStartedOrStopped => (((testStartedOrStopped === 'started') && (this.tcs.testMode.receiveRemoteCommands)) ? `test/${this.tcs.testId}/commands` : '')),
filter(newPollingEndpoint => newPollingEndpoint !== this.pollingEndpoint), filter(newPollingEndpoint => newPollingEndpoint !== this.pollingEndpoint),
switchMap((pollingEndpoint: string) => { switchMap((pollingEndpoint: string) => {
this.pollingEndpoint = pollingEndpoint; this.pollingEndpoint = pollingEndpoint;
......
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