diff --git a/pagetop/src/core/component/arc_any.rs b/pagetop/src/core/component/arc_any.rs index 4b8759cd..b9252c36 100644 --- a/pagetop/src/core/component/arc_any.rs +++ b/pagetop/src/core/component/arc_any.rs @@ -55,7 +55,7 @@ pub enum ArcAnyOp { Add(ArcAnyComponent), AddAfterId(&'static str, ArcAnyComponent), AddBeforeId(&'static str, ArcAnyComponent), - AddFirst(ArcAnyComponent), + Prepend(ArcAnyComponent), RemoveById(&'static str), ReplaceById(&'static str, ArcAnyComponent), Reset, @@ -91,7 +91,7 @@ impl AnyComponents { Some(index) => self.0.insert(index, arc), _ => self.0.insert(0, arc), }, - ArcAnyOp::AddFirst(arc) => self.0.insert(0, arc), + ArcAnyOp::Prepend(arc) => self.0.insert(0, arc), ArcAnyOp::RemoveById(id) => { if let Some(index) = self.0.iter().position(|c| c.id() == id) { self.0.remove(index); diff --git a/pagetop/src/core/component/arc_typed.rs b/pagetop/src/core/component/arc_typed.rs index 7bce8c98..483229a0 100644 --- a/pagetop/src/core/component/arc_typed.rs +++ b/pagetop/src/core/component/arc_typed.rs @@ -60,7 +60,7 @@ pub enum ArcTypedOp { Add(ArcTypedComponent), AddAfterId(&'static str, ArcTypedComponent), AddBeforeId(&'static str, ArcTypedComponent), - AddFirst(ArcTypedComponent), + Prepend(ArcTypedComponent), RemoveById(&'static str), ReplaceById(&'static str, ArcTypedComponent), Reset, @@ -88,7 +88,7 @@ impl TypedComponents { Some(index) => self.0.insert(index, one), _ => self.0.insert(0, one), }, - ArcTypedOp::AddFirst(one) => self.0.insert(0, one), + ArcTypedOp::Prepend(one) => self.0.insert(0, one), ArcTypedOp::RemoveById(id) => { if let Some(index) = self.0.iter().position(|c| c.id() == id) { self.0.remove(index);