🚚 Renombra add_component por add_child
This commit is contained in:
parent
c10f267fc6
commit
5fb9685594
12 changed files with 31 additions and 32 deletions
|
|
@ -34,7 +34,7 @@ impl Display for ErrorPage {
|
|||
if let Ok(page) = error_page
|
||||
.with_title(L10n::n("Error FORBIDDEN"))
|
||||
.with_layout("error")
|
||||
.add_component(Html::with(move |_| error403.clone()))
|
||||
.add_child(Html::with(move |_| error403.clone()))
|
||||
.render()
|
||||
{
|
||||
write!(f, "{}", page.into_string())
|
||||
|
|
@ -49,7 +49,7 @@ impl Display for ErrorPage {
|
|||
if let Ok(page) = error_page
|
||||
.with_title(L10n::n("Error RESOURCE NOT FOUND"))
|
||||
.with_layout("error")
|
||||
.add_component(Html::with(move |_| error404.clone()))
|
||||
.add_child(Html::with(move |_| error404.clone()))
|
||||
.render()
|
||||
{
|
||||
write!(f, "{}", page.into_string())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue