Skip to content

Commit

Permalink
Merge branch 'release-45.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 10, 2023
2 parents fbae1b6 + ac94edd commit f6f087e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
2 changes: 2 additions & 0 deletions views/js/controller/creator/templates/section-props.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
</div>
</div>

{{#if hasSelectionWithReplacement}}
<!-- assessmentTest/testPart/assessmentSection/selection/withReplacement -->
<div class="grid-row pseudo-label-box">
<div class="col-5">
Expand All @@ -206,6 +207,7 @@
</div>
</div>
</div>
{{/if}}
</div>

<h4 class="toggler closed" data-toggle="~ .section-ordering">{{__ 'Ordering'}}</h4>
Expand Down
11 changes: 9 additions & 2 deletions views/js/controller/creator/views/section.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ define([
'ui/dialog/confirm',
'taoQtiTest/controller/creator/helpers/subsection',
'taoQtiTest/controller/creator/helpers/validators',
'taoQtiTest/controller/creator/helpers/featureVisibility'
'taoQtiTest/controller/creator/helpers/featureVisibility',
'services/features'
], function (
$,
_,
Expand All @@ -58,7 +59,8 @@ define([
confirmDialog,
subsectionsHelper,
validators,
featureVisibility
featureVisibility,
servicesFeatures
) {
('use strict');

Expand Down Expand Up @@ -94,6 +96,11 @@ define([
sectionModel.hasBlueprint = true;
}

sectionModel.hasSelectionWithReplacement = servicesFeatures.isVisible(
'taoQtiTest/creator/properties/selectionWithReplacement',
false
);

//add feature visibility properties to sectionModel
featureVisibility.addSectionVisibilityProps(sectionModel);

Expand Down
12 changes: 10 additions & 2 deletions views/js/controller/creator/views/subsection.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ define([
'taoQtiTest/controller/creator/helpers/sectionBlueprints',
'ui/dialog/confirm',
'taoQtiTest/controller/creator/helpers/subsection',
'taoQtiTest/controller/creator/helpers/validators'
'taoQtiTest/controller/creator/helpers/validators',
'services/features'
], function (
$,
_,
Expand All @@ -49,7 +50,8 @@ define([
sectionBlueprint,
confirmDialog,
subsectionsHelper,
validators
validators,
servicesFeatures
) {
'use strict';
/**
Expand Down Expand Up @@ -81,6 +83,12 @@ define([
if (!_.isEmpty(config.routes.blueprintsById)) {
subsectionModel.hasBlueprint = true;
}

sectionModel.hasSelectionWithReplacement = servicesFeatures.isVisible(
'taoQtiTest/creator/properties/selectionWithReplacement',
false
);

actions.properties($titleWithActions, 'section', subsectionModel, propHandler);
actions.move($titleWithActions, 'subsections', 'subsection');
actions.displayItemWrapper($subsection);
Expand Down
2 changes: 1 addition & 1 deletion views/js/loader/taoQtiTest.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/taoQtiTest.min.js.map

Large diffs are not rendered by default.

0 comments on commit f6f087e

Please sign in to comment.