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
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

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