SEBSERV-528 fixed

This commit is contained in:
anhefti 2024-03-20 11:30:48 +01:00
parent 5008fbcd19
commit b463e5be6c
2 changed files with 4 additions and 0 deletions

View file

@ -57,6 +57,8 @@ public class ExamIndicatorsList implements TemplateComposer {
new LocTextKey("sebserver.exam.indicator.list.pleaseSelect");
private static final LocTextKey INDICATOR_EMPTY_LIST_MESSAGE =
new LocTextKey("sebserver.exam.indicator.list.empty");
private static final LocTextKey CONFIRM_MESSAGE_REMOVE_INDICATOR =
new LocTextKey("sebserver.exam.indicator.list.delete.confirm");
private final PageService pageService;
private final ResourceService resourceService;
@ -144,6 +146,7 @@ public class ExamIndicatorsList implements TemplateComposer {
indicatorTable::getMultiSelection,
this::deleteSelectedIndicator,
INDICATOR_EMPTY_SELECTION_TEXT_KEY)
.withConfirm(() -> CONFIRM_MESSAGE_REMOVE_INDICATOR)
.publishIf(() -> indicatorEnabled && !isLight && editable && indicatorTable.hasAnyContent(), false)
.newAction(ActionDefinition.EXAM_INDICATOR_NEW)

View file

@ -709,6 +709,7 @@ sebserver.exam.indicator.list.column.thresholds=Thresholds
sebserver.exam.indicator.list.column.thresholds.tooltip=The thresholds of the indicator
sebserver.exam.indicator.list.empty=There is currently no indicator defined for this exam. Please create a new one
sebserver.exam.indicator.list.pleaseSelect=At first please select an indicator from the list
sebserver.exam.indicator.list.delete.confirm=Are you sure to delete the selected Indicator from the Exam?
sebserver.exam.clientgroup.list.actions= 
sebserver.exam.clientgroup.list.title=Client Groups