Skip to content

Commit eed9c29

Browse files
authored
fix: favourite package in search container
1 parent 7e941a5 commit eed9c29

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

amd/build/package_search/components/tab_content.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/package_search/components/tab_content.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/src/package_search/components/tab_content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default class extends Component {
7373
let promises = [];
7474
for (const context of contexts) {
7575
// Context is a proxy, we need to get the target.
76-
const contextObj = Object.assign({}, context);
76+
const contextObj = Object.assign({"ismarkableasfavourite": true}, context);
7777
const promise = templates.renderForPromise("qtype_questionpy/package/package_selection", contextObj);
7878
promises.push(promise);
7979
}

templates/package_search/tag_bar/layout.mustache

-6
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,11 @@
1919
2020
Template for the layout of autocomplete elements.
2121
22-
Classes required for JS:
23-
* none
24-
2522
Data attributes required for JS:
2623
* data-region="form_autocomplete-input"
2724
* data-region="form_autocomplete-suggestions"
2825
* data-region="form_autocomplete-selection"
2926
30-
Context variables required for this template:
31-
* none
32-
3327
Example context (json):
3428
{}
3529
}}

templates/package_search/tag_bar/selection.mustache

+1-7
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,10 @@
1515
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
1616
}}
1717
{{!
18-
@template qtype_questionpy/package_search/tag_bar/layout
18+
@template qtype_questionpy/package_search/tag_bar/selection
1919
2020
Template for the wrapper of currently selected items in an autocomplate form element.
2121
22-
Classes required for JS:
23-
* none
24-
25-
Data attributes required for JS:
26-
* none
27-
2822
Context variables required for this template:
2923
* selectionId The dom id of the current selection list.
3024
* items List of items with label and value fields (used by the partial).

0 commit comments

Comments
 (0)