From 3e16107b7e8ffc85c53b344f76867f6a99dde28b Mon Sep 17 00:00:00 2001 From: Elblinator Date: Mon, 11 Nov 2024 11:21:26 +0100 Subject: [PATCH 1/2] Call delegations if they exist --- .../participant-detail-view.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts b/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts index 62f71213f6..ae6a81e25c 100644 --- a/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts +++ b/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts @@ -234,7 +234,7 @@ export class ParticipantDetailViewComponent extends BaseMeetingComponent { // TODO: Open groups subscription this.groups = this.groupRepo.getViewModelListWithoutSystemGroupsObservable(); - this.disableExpandControl = this.user.vote_delegations_from(); + this.disableExpandControl = this.user?.hasVoteRightFromOthers ? this.user.vote_delegations_from() : []; } public isAllowed(action: string): boolean { From a7f4c21d655ce910c8ac9021e7a7d04593428199 Mon Sep 17 00:00:00 2001 From: Elblinator Date: Mon, 11 Nov 2024 15:43:45 +0100 Subject: [PATCH 2/2] Move set of disableExpandControl --- .../participant-detail-view.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts b/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts index ae6a81e25c..7496fe7dd4 100644 --- a/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts +++ b/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts @@ -107,8 +107,8 @@ export class ParticipantDetailViewComponent extends BaseMeetingComponent { return this._disableExpandControl; } - public set disableExpandControl(delegationList: ViewUser[]) { - this._disableExpandControl = delegationList.length < 10; + public set disableExpandControl(delegationLongEnough: boolean) { + this._disableExpandControl = delegationLongEnough; } public isFormValid = false; @@ -234,7 +234,7 @@ export class ParticipantDetailViewComponent extends BaseMeetingComponent { // TODO: Open groups subscription this.groups = this.groupRepo.getViewModelListWithoutSystemGroupsObservable(); - this.disableExpandControl = this.user?.hasVoteRightFromOthers ? this.user.vote_delegations_from() : []; + this.disableExpandControl = this.user?.vote_delegations_from().length < 10; } public isAllowed(action: string): boolean {