From c29bfe67be224855c00744188a00cbd70f85d61c Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 22 Jun 2022 15:16:48 +0200 Subject: [PATCH] fixed selection --- .../monitoring/MonitoringRunningExam.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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,