fixed selection

This commit is contained in:
anhefti 2022-06-22 15:16:48 +02:00
parent 5fe710e966
commit c29bfe67be

View file

@ -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,