File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
addons/block/myoverview/components/myoverview Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ <h2>{{ 'addon.block_myoverview.pluginname' | translate }}</h2>
3737 < ion-row class ="ion-justify-content-between ion-align-items-center addon-block-myoverview-filter ">
3838 @if (filters.enabled) {
3939 < ion-col size ="auto ">
40- < core-combobox [label] ="'core.courses.filtermycourses' | translate " [selection] ="filters.timeFilterSelected "
40+ < core-combobox [label] ="'core.courses.filtermycourses' | translate " [( selection) ] ="filters.timeFilterSelected "
4141 (selectionChange) ="filterCourses() ">
4242 @if (filters.show.allincludinghidden) {
4343 < ion-select-option class ="ion-text-wrap core-select-option-border-bottom " value ="allincludinghidden ">
@@ -95,7 +95,7 @@ <h2>{{ 'addon.block_myoverview.pluginname' | translate }}</h2>
9595 </ ion-col >
9696 @if (sort.enabled) {
9797 < ion-col size ="auto ">
98- < core-combobox [label] ="'core.sortby' | translate " [selection] ="sort.selected " (selectionChange) ="sortCourses() "
98+ < core-combobox [label] ="'core.sortby' | translate " [( selection) ] ="sort.selected " (selectionChange) ="sortCourses() "
9999 icon ="fas-arrow-down-short-wide " class ="no-border ">
100100 < ion-select-option class ="ion-text-wrap " value ="fullname ">
101101 {{'addon.block_myoverview.title' | translate}}
Original file line number Diff line number Diff line change @@ -135,13 +135,14 @@ export class CoreComboboxComponent implements ControlValueAccessor {
135135
136136 this . expanded . set ( true ) ;
137137
138- const data = await CoreModals . openModal ( {
138+ const data = await CoreModals . openModal < string > ( {
139139 ...modalOptions ,
140140 id : this . listboxId ( ) || modalOptions . id ,
141141 } ) ;
142142 this . expanded . set ( false ) ;
143143
144144 if ( data ) {
145+ this . selection . set ( data ) ;
145146 this . onValueChanged ( data ) ;
146147 }
147148 }
You can’t perform that action at this time.
0 commit comments