forked from Plugin-JF-Onkostar/osc-variant
Add optional sorted listing of file contents
This commit is contained in:
@@ -27,7 +27,7 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::model::{
|
||||
apply_profile_to_form_entry, Ansichten, Entries, Filter, FormEntry, FormEntryContainer,
|
||||
Listable, MenuCategory, PlausibilityRules, Script,
|
||||
Listable, MenuCategory, PlausibilityRules, Script, Sortable,
|
||||
};
|
||||
use crate::model::{Haeufigkeiten, Ordner};
|
||||
use crate::profile::Profile;
|
||||
@@ -206,6 +206,12 @@ impl Listable for Unterformular {
|
||||
}
|
||||
}
|
||||
|
||||
impl Sortable for Unterformular {
|
||||
fn sorting_key(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct DataCatalogues {
|
||||
|
||||
Reference in New Issue
Block a user