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 34c28dcc0e
commit 2d08670c9f

View File

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