Added exit of edit mode when changing members filters

no issue

- keeping selection does not make sense when a filter or search is changed
This commit is contained in:
Kevin Ansfield 2020-06-18 11:23:15 +01:00
parent 0f587a90d0
commit 5601939f92
1 changed files with 7 additions and 0 deletions

View File

@ -234,6 +234,8 @@ export default class MembersController extends Controller {
// params is undefined when called as a "refresh" of the model
let {label, paidParam, searchParam} = typeof params === 'undefined' ? this : params;
this.resetSelection();
if (!searchParam) {
this.resetSearch();
}
@ -286,4 +288,9 @@ export default class MembersController extends Controller {
resetSearch() {
this.searchText = '';
}
resetSelection() {
this.isEditing = false;
this.allSelected = false;
}
}