mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 13:22:39 +03:00
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:
parent
34c28dcc0e
commit
2d08670c9f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user