From 943cfe9ade786ff8d5b9add530f204049799c467 Mon Sep 17 00:00:00 2001 From: reiterl Date: Fri, 3 May 2024 10:09:32 +0200 Subject: [PATCH] Add committee selector to motion meta data submitters (#3606) This selector allows to fill the submitters extension text field with committee names. --- ...forwarding-committees-presenter.service.ts | 25 ++++++++ .../src/app/gateways/presenter/presenter.ts | 1 + ...manage-motion-meeting-users.component.html | 13 +++++ ...n-manage-motion-meeting-users.component.ts | 58 +++++++++++++++++-- .../motion-meta-data.component.html | 2 + .../motion-meta-data.component.ts | 30 +++++++++- 6 files changed, 122 insertions(+), 7 deletions(-) create mode 100644 client/src/app/gateways/presenter/get-forwarding-committees-presenter.service.ts diff --git a/client/src/app/gateways/presenter/get-forwarding-committees-presenter.service.ts b/client/src/app/gateways/presenter/get-forwarding-committees-presenter.service.ts new file mode 100644 index 0000000000..9abeaad619 --- /dev/null +++ b/client/src/app/gateways/presenter/get-forwarding-committees-presenter.service.ts @@ -0,0 +1,25 @@ +import { Injectable } from '@angular/core'; +import { Id } from 'src/app/domain/definitions/key-types'; + +import { Presenter } from './presenter'; +import { PresenterService } from './presenter.service'; + +interface GetForwardCommitteesPresenterPayload { + meeting_id: Id; +} + +type GetForwardingCommitteesPresenterResult = string[]; + +@Injectable({ + providedIn: `root` +}) +export class GetForwardingCommitteesPresenterService { + public constructor(private presenter: PresenterService) {} + + public async call(payload: GetForwardCommitteesPresenterPayload): Promise { + return await this.presenter.call( + Presenter.GET_FORWARDING_COMMITTEES, + payload + ); + } +} diff --git a/client/src/app/gateways/presenter/presenter.ts b/client/src/app/gateways/presenter/presenter.ts index 11a56c5d2e..d7995cbb66 100644 --- a/client/src/app/gateways/presenter/presenter.ts +++ b/client/src/app/gateways/presenter/presenter.ts @@ -4,6 +4,7 @@ export enum Presenter { GET_ACTIVE_USER_AMOUNT = `get_active_users_amount`, GET_USER_RELATED_MODELS = `get_user_related_models`, GET_USER_SCOPE = `get_user_scope`, + GET_FORWARDING_COMMITTEES = `get_forwarding_committees`, GET_FORWARDING_MEETINGS = `get_forwarding_meetings`, SEARCH_USERS = `search_users`, SEARCH_DELETED_MODELS = `search_deleted_models`, diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/components/motion-manage-motion-meeting-users/motion-manage-motion-meeting-users.component.html b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/components/motion-manage-motion-meeting-users/motion-manage-motion-meeting-users.component.html index d26ea32e21..e557fe96d6 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/components/motion-manage-motion-meeting-users/motion-manage-motion-meeting-users.component.html +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/components/motion-manage-motion-meeting-users/motion-manage-motion-meeting-users.component.html @@ -69,6 +69,19 @@

+
+ + {{ secondSelectorLabel }} + + +
+