diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/monitoring/MonitoringRunningExam.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/monitoring/MonitoringRunningExam.java index 92a8a26c..01d02f2d 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/monitoring/MonitoringRunningExam.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/monitoring/MonitoringRunningExam.java @@ -213,11 +213,7 @@ public class MonitoringRunningExam implements TemplateComposer { .withEntityKey(entityKey) .withSelect( () -> this.selectionForInstruction(clientTable), - action -> this.sebSendLockPopup.show( - action, - statesPredicate -> clientTable.getConnectionTokens( - statesPredicate, - true)), + action -> this.showSEBLockActionPopup(action, clientTable), EMPTY_ACTIVE_SELECTION_TEXT_KEY) .noEventPropagation() .publishIf(isExamSupporter, false) @@ -279,6 +275,19 @@ public class MonitoringRunningExam implements TemplateComposer { fullPageMonitoringUpdate.start(pageContext, content, this.pollInterval); } + private PageAction showSEBLockActionPopup( + final PageAction action, + final ClientConnectionTable clientTable) { + + this.sebSendLockPopup.show( + action, + statesPredicate -> clientTable.getConnectionTokens( + statesPredicate, + true)); + clientTable.removeSelection(); + return action; + } + private FullPageMonitoringGUIUpdate createProctoringActions( final ProctoringServiceSettings proctoringSettings, final ProctoringGUIService proctoringGUIService,