confirm message for town-hall action
This commit is contained in:
parent
fb0fc2aec0
commit
66475b84d9
2 changed files with 15 additions and 1 deletions
|
@ -82,6 +82,10 @@ public class MonitoringRunningExam implements TemplateComposer {
|
|||
new LocTextKey("sebserver.monitoring.exam.connection.action.instruction.quit.selected.confirm");
|
||||
private static final LocTextKey CONFIRM_QUIT_ALL =
|
||||
new LocTextKey("sebserver.monitoring.exam.connection.action.instruction.quit.all.confirm");
|
||||
private static final LocTextKey CONFIRM_OPEN_TOWNHALL =
|
||||
new LocTextKey("sebserver.monitoring.exam.connection.action.openTownhall.confirm");
|
||||
private static final LocTextKey CONFIRM_CLOSE_TOWNHALL =
|
||||
new LocTextKey("sebserver.monitoring.exam.connection.action.closeTownhall.confirm");
|
||||
private static final LocTextKey CONFIRM_DISABLE_SELECTED =
|
||||
new LocTextKey("sebserver.monitoring.exam.connection.action.instruction.disable.selected.confirm");
|
||||
|
||||
|
@ -276,7 +280,15 @@ public class MonitoringRunningExam implements TemplateComposer {
|
|||
|
||||
actionBuilder.newAction(ActionDefinition.MONITOR_EXAM_OPEN_TOWNHALL_PROCTOR_ROOM)
|
||||
.withEntityKey(entityKey)
|
||||
.withExec(action -> this.monitoringProctoringService.toggleTownhallRoom(proctoringGUIService,
|
||||
.withConfirm(action -> {
|
||||
if (!this.monitoringProctoringService.isTownhallRoomActive(action.getEntityKey().modelId)) {
|
||||
return CONFIRM_OPEN_TOWNHALL;
|
||||
} else {
|
||||
return CONFIRM_CLOSE_TOWNHALL;
|
||||
}
|
||||
})
|
||||
.withExec(action -> this.monitoringProctoringService.toggleTownhallRoom(
|
||||
proctoringGUIService,
|
||||
action))
|
||||
.noEventPropagation()
|
||||
.publish();
|
||||
|
|
|
@ -1718,6 +1718,8 @@ sebserver.monitoring.exam.connection.action.hide.undefined=Hide Undefined
|
|||
sebserver.monitoring.exam.connection.action.show.undefined=Show Undefined
|
||||
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.<br/>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.<br/>Are you sure to close the town-hall?
|
||||
|
||||
sebserver.monitoring.exam.connection.notificationlist.actions=
|
||||
sebserver.monitoring.exam.connection.action.confirm.notification=Confirm Notification
|
||||
|
|
Loading…
Reference in a new issue