mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +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
|
// 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user