From 48c8c691240103fbed12dccb2c1b993121c65136 Mon Sep 17 00:00:00 2001 From: "openslides-automation[bot]" <125256978+openslides-automation[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:16:43 +0000 Subject: [PATCH] Fix show all changes checkbox state persistance (#4472) (#4476) --- .../motion-detail/base/base-motion-detail-child.component.ts | 1 + .../components/motion-meta-data/motion-meta-data.component.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/base/base-motion-detail-child.component.ts b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/base/base-motion-detail-child.component.ts index dad8b88219..15bb8821fe 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/base/base-motion-detail-child.component.ts +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/base/base-motion-detail-child.component.ts @@ -113,5 +113,6 @@ export abstract class BaseMotionDetailChildComponent extends BaseMeetingComponen private destroy(): void { this.cleanSubscriptions(); + this.viewService.showAllAmendmentsStateSubject.next(false); } } diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-view/components/motion-meta-data/motion-meta-data.component.ts b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-view/components/motion-meta-data/motion-meta-data.component.ts index e05c5f207c..704859746f 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-view/components/motion-meta-data/motion-meta-data.component.ts +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-view/components/motion-meta-data/motion-meta-data.component.ts @@ -112,6 +112,10 @@ export class MotionMetaDataComponent extends BaseMotionDetailChildComponent impl return null; } + public override get showAllAmendments(): boolean { + return this.viewService.currentShowAllAmendmentsState; + } + public override set showAllAmendments(is: boolean) { this.viewService.showAllAmendmentsStateSubject.next(is); }