dash-frontend: tab titles, home screen username
This commit is contained in:
@@ -23,9 +23,15 @@ pub fn parse_widget_label<'a, U1, U2>(
|
||||
for (key, value) in attribs {
|
||||
match &*key {
|
||||
"text" => {
|
||||
params.content = Translation::from_raw_text(&value);
|
||||
if !value.is_empty() {
|
||||
params.content = Translation::from_raw_text(&value);
|
||||
}
|
||||
}
|
||||
"translation" => {
|
||||
if !value.is_empty() {
|
||||
params.content = Translation::from_translation_key(&value);
|
||||
}
|
||||
}
|
||||
"translation" => params.content = Translation::from_translation_key(&value),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user