Skip to content

Commit 821d1e1

Browse files
committed
Adapt manual questions selection and replace questions to quiz search
1 parent f76d933 commit 821d1e1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/sidePanels/QuizResourceSelection/subPages/SelectFromQuizSearchResults.vue

+14-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/>
2525

2626
<UpdatedResourceSelection
27+
:isSelectable="!settings.isChoosingManually"
2728
:contentList="contentList"
2829
:hasMore="hasMore"
2930
:cardsHeadingLevel="2"
@@ -47,7 +48,6 @@
4748
import { coreStrings } from 'kolibri/uiText/commonCoreStrings';
4849
import SearchChips from 'kolibri-common/components/SearchChips';
4950
import { searchAndFilterStrings } from 'kolibri-common/strings/searchAndFilterStrings';
50-
import { enhancedQuizManagementStrings } from 'kolibri-common/strings/enhancedQuizManagementStrings';
5151
import { PageNames } from '../../../../../../constants';
5252
import UpdatedResourceSelection from '../../../../../common/resourceSelection/UpdatedResourceSelection.vue';
5353
@@ -79,9 +79,8 @@
7979
}
8080
8181
const { selectFromChannels$, searchLabel$ } = coreStrings;
82-
const { selectPracticeQuizLabel$ } = enhancedQuizManagementStrings;
8382
84-
props.setTitle(selectPracticeQuizLabel$());
83+
props.setTitle(props.defaultTitle);
8584
props.setGoBack(null);
8685
8786
const { data, hasMore, fetchMore, loadingMore } = props.searchFetch;
@@ -104,6 +103,10 @@
104103
type: Function,
105104
default: () => {},
106105
},
106+
defaultTitle: {
107+
type: String,
108+
required: true,
109+
},
107110
/**
108111
* Fetch object for fetching search results.
109112
* @type {FetchObject}
@@ -141,6 +144,14 @@
141144
type: Function,
142145
required: true,
143146
},
147+
/**
148+
* Selection settings used for quizzes.
149+
*/
150+
settings: {
151+
type: Object,
152+
required: false,
153+
default: null,
154+
},
144155
},
145156
computed: {
146157
resultsCountMessage() {

packages/kolibri-common/components/accordion/AccordionItem.vue

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
148148
.header-content {
149149
display: flex;
150+
gap: 4px;
150151
align-items: center;
151152
justify-content: space-between;
152153
}

0 commit comments

Comments
 (0)