From f645192e60ac5de3c98c6178a999eb546e57c3fa Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 8 Dec 2021 13:03:09 +0100 Subject: [PATCH] Single Room Proctoring Handling #4 --- .../seb/sebserver/gui/content/MonitoringClientConnection.java | 3 +++ src/main/resources/messages.properties | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/MonitoringClientConnection.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/MonitoringClientConnection.java index b5932dd3..d599cca0 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/MonitoringClientConnection.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/MonitoringClientConnection.java @@ -107,6 +107,8 @@ public class MonitoringClientConnection implements TemplateComposer { new LocTextKey("sebserver.monitoring.exam.connection.eventlist.text"); private static final LocTextKey CONFIRM_QUIT = new LocTextKey("sebserver.monitoring.exam.connection.action.instruction.quit.confirm"); + private static final LocTextKey CONFIRM_OPEN_SINGLE_ROOM = + new LocTextKey("sebserver.monitoring.exam.connection.action.singleroom.confirm"); private final ServerPushService serverPushService; private final PageService pageService; @@ -385,6 +387,7 @@ public class MonitoringClientConnection implements TemplateComposer { actionBuilder .newAction(ActionDefinition.MONITOR_EXAM_CLIENT_CONNECTION_PROCTORING) .withEntityKey(parentEntityKey) + .withConfirm(() -> CONFIRM_OPEN_SINGLE_ROOM) .withExec(action -> this.monitoringProctoringService.openOneToOneRoom( action, connectionData, diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties index c9b7071c..68fe706d 100644 --- a/src/main/resources/messages.properties +++ b/src/main/resources/messages.properties @@ -1720,6 +1720,7 @@ sebserver.monitoring.exam.connection.action.proctoring=Single Room Proctoring sebserver.monitoring.exam.connection.action.proctoring.examroom=Exam Room Proctoring sebserver.monitoring.exam.connection.action.openTownhall.confirm=You are about to open the town-hall room and force all SEB clients to join the town-hall room.
Are you sure to open the town-hall? sebserver.monitoring.exam.connection.action.closeTownhall.confirm=You are about to close the town-hall room and force all SEB clients to join it's proctoring room.
Are you sure to close the town-hall? +sebserver.monitoring.exam.connection.action.singleroom.confirm=You are about to open the single/one to one room for this participant.
Are you sure you want to open the single room? sebserver.monitoring.exam.connection.notificationlist.actions= sebserver.monitoring.exam.connection.action.confirm.notification=Confirm Notification