diff --git a/client/src/app/site/agenda/components/agenda-list/agenda-list.component.html b/client/src/app/site/agenda/components/agenda-list/agenda-list.component.html index 50ded374b..ec2e4f653 100644 --- a/client/src/app/site/agenda/components/agenda-list/agenda-list.component.html +++ b/client/src/app/site/agenda/components/agenda-list/agenda-list.component.html @@ -103,13 +103,14 @@
-
+
- +
+
@@ -235,6 +236,23 @@ {{ 'Remove from agenda' | translate }}
+ + + + +
+ + + + + +
diff --git a/client/src/app/site/agenda/components/agenda-list/agenda-list.component.ts b/client/src/app/site/agenda/components/agenda-list/agenda-list.component.ts index bf0547a04..cbfb44137 100644 --- a/client/src/app/site/agenda/components/agenda-list/agenda-list.component.ts +++ b/client/src/app/site/agenda/components/agenda-list/agenda-list.component.ts @@ -303,6 +303,25 @@ export class AgendaListComponent extends BaseListViewComponent impleme } } + /** + * Sets multiple entries' open/closed state. Needs items in selectedRows, which + * is only filled with any data in multiSelect mode + * + * @param closed true if the item is to be considered done + */ + public async setClosedListsOfSpeakersSelected(closed: boolean): Promise { + try { + for (const item of this.selectedRows) { + const los = (item.contentObject as any)?.listOfSpeakers; + if (los) { + await this.listOfSpeakersRepo.update({ closed: closed }, los); + } + } + } catch (e) { + this.raiseError(e); + } + } + /** * Export all items as CSV */