Introduce the reset_sortable_fields Settings method

This commit is contained in:
Kerollmops
2021-08-25 17:44:16 +02:00
parent c8930781eb
commit f230ae6fd5

View File

@ -141,6 +141,10 @@ impl<'a, 't, 'u, 'i> Settings<'a, 't, 'u, 'i> {
self.sortable_fields = Setting::Set(names);
}
pub fn reset_sortable_fields(&mut self) {
self.sortable_fields = Setting::Reset;
}
pub fn reset_criteria(&mut self) {
self.criteria = Setting::Reset;
}