From 2f1bf87102d36fcdd24d24df8352f7b9a8f7dcc8 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Thu, 30 Jun 2022 09:27:51 +0200 Subject: [PATCH] app: propagate change events --- app/src/components/change_password.rs | 4 ++-- app/src/components/create_group.rs | 4 ++-- app/src/components/create_user.rs | 4 ++-- app/src/components/group_details.rs | 4 ++-- app/src/components/group_table.rs | 4 ++-- app/src/components/login.rs | 4 ++-- app/src/components/logout.rs | 4 ++-- app/src/components/remove_user_from_group.rs | 4 ++-- app/src/components/reset_password_step1.rs | 4 ++-- app/src/components/reset_password_step2.rs | 4 ++-- app/src/components/user_details.rs | 4 ++-- app/src/components/user_details_form.rs | 4 ++-- app/src/components/user_table.rs | 4 ++-- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/app/src/components/change_password.rs b/app/src/components/change_password.rs index 39f2a4a..3ba2f28 100644 --- a/app/src/components/change_password.rs +++ b/app/src/components/change_password.rs @@ -211,8 +211,8 @@ impl Component for ChangePasswordForm { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/create_group.rs b/app/src/components/create_group.rs index 04a63a9..37cd504 100644 --- a/app/src/components/create_group.rs +++ b/app/src/components/create_group.rs @@ -92,8 +92,8 @@ impl Component for CreateGroupForm { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/create_user.rs b/app/src/components/create_user.rs index 1745b3b..fa271cb 100644 --- a/app/src/components/create_user.rs +++ b/app/src/components/create_user.rs @@ -185,8 +185,8 @@ impl Component for CreateUserForm { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/group_details.rs b/app/src/components/group_details.rs index 7913328..442fec5 100644 --- a/app/src/components/group_details.rs +++ b/app/src/components/group_details.rs @@ -190,8 +190,8 @@ impl Component for GroupDetails { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/group_table.rs b/app/src/components/group_table.rs index 3933946..e6c7a0e 100644 --- a/app/src/components/group_table.rs +++ b/app/src/components/group_table.rs @@ -75,8 +75,8 @@ impl Component for GroupTable { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/login.rs b/app/src/components/login.rs index a34b4ba..3c8f44e 100644 --- a/app/src/components/login.rs +++ b/app/src/components/login.rs @@ -141,8 +141,8 @@ impl Component for LoginForm { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/logout.rs b/app/src/components/logout.rs index 1465fa1..8eb3f1f 100644 --- a/app/src/components/logout.rs +++ b/app/src/components/logout.rs @@ -55,8 +55,8 @@ impl Component for LogoutButton { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/remove_user_from_group.rs b/app/src/components/remove_user_from_group.rs index a6d751a..f1b8216 100644 --- a/app/src/components/remove_user_from_group.rs +++ b/app/src/components/remove_user_from_group.rs @@ -81,8 +81,8 @@ impl Component for RemoveUserFromGroupComponent { ) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/reset_password_step1.rs b/app/src/components/reset_password_step1.rs index 6181152..2309a11 100644 --- a/app/src/components/reset_password_step1.rs +++ b/app/src/components/reset_password_step1.rs @@ -76,8 +76,8 @@ impl Component for ResetPasswordStep1Form { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/reset_password_step2.rs b/app/src/components/reset_password_step2.rs index 992a846..5fe8e00 100644 --- a/app/src/components/reset_password_step2.rs +++ b/app/src/components/reset_password_step2.rs @@ -145,8 +145,8 @@ impl Component for ResetPasswordStep2Form { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/user_details.rs b/app/src/components/user_details.rs index 5c7d972..2f57af0 100644 --- a/app/src/components/user_details.rs +++ b/app/src/components/user_details.rs @@ -185,8 +185,8 @@ impl Component for UserDetails { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/user_details_form.rs b/app/src/components/user_details_form.rs index 9385983..9e3075f 100644 --- a/app/src/components/user_details_form.rs +++ b/app/src/components/user_details_form.rs @@ -96,8 +96,8 @@ impl Component for UserDetailsForm { ) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html { diff --git a/app/src/components/user_table.rs b/app/src/components/user_table.rs index 8210ef2..4e4efcb 100644 --- a/app/src/components/user_table.rs +++ b/app/src/components/user_table.rs @@ -81,8 +81,8 @@ impl Component for UserTable { CommonComponentParts::::update(self, msg) } - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false + fn change(&mut self, props: Self::Properties) -> ShouldRender { + self.common.change(props) } fn view(&self) -> Html {