Skip to content

Commit

Permalink
Add moderator notes to topic detail (#3457)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl authored Apr 9, 2024
1 parent b898e8c commit 80f94d8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export class ModerationNoteComponent extends BaseMeetingComponent implements OnI
}
}

@Input()
public set contentObject(contentObject: BaseViewModel) {
this._contentObject = contentObject;
}

public get moderatorNotes(): Observable<string> {
return this.agendaItemRepo
.getViewModelObservable(this._contentObject?.getModel().agenda_item_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const getTopicDetailSubscriptionConfig: SubscriptionConfigGenerator = (..
idField: `list_of_speakers_id`,
...listOfSpeakersSpeakerCountSubscription
},
{ idField: `agenda_item_id`, fieldset: [`item_number`, `content_object_id`] }
{ idField: `agenda_item_id`, fieldset: [`item_number`, `content_object_id`, `moderator_notes`] }
]
},
subscriptionName: TOPIC_ITEM_SUBSCRIPTION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h2>
</button>
</div>
</os-head-bar>

<mat-card *ngIf="(topic || editTopic) && (hasLoaded | async)" class="spacer-bottom-60 os-card">
<mat-card-content>
<ng-container *ngIf="!editTopic && topic">
Expand Down Expand Up @@ -104,6 +105,7 @@ <h4>{{ 'Text' | translate }}</h4>
</mat-card-content>
</mat-card>

<os-moderation-note [contentObject]="topic" *ngIf="!editTopic"></os-moderation-note>
<div *ngIf="!editTopic" class="spacer-bottom-60">
<ng-container *ngIf="topic && topic.poll_ids?.length">
<ng-container *ngFor="let poll of topic.poll_ids | reverse; trackBy: trackById">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { MatLegacyMenuModule as MatMenuModule } from '@angular/material/legacy-m
import { MatSelectModule } from '@angular/material/select';
import { RouterModule } from '@angular/router';
import { OpenSlidesTranslationModule } from 'src/app/site/modules/translations';
import { ListOfSpeakersContentModule } from 'src/app/site/pages/meetings/modules/list-of-speakers-content/list-of-speakers-content.module';
import { MeetingsComponentCollectorModule } from 'src/app/site/pages/meetings/modules/meetings-component-collector';
import { AttachmentControlModule } from 'src/app/site/pages/meetings/modules/meetings-component-collector/attachment-control';
import { DirectivesModule } from 'src/app/ui/directives';
Expand Down Expand Up @@ -47,7 +48,8 @@ import { TopicDetailRoutingModule } from './topic-detail-routing.module';
MatListModule,
MatFormFieldModule,
TopicPollModule,
RouterModule
RouterModule,
ListOfSpeakersContentModule
]
})
export class TopicDetailModule {}

0 comments on commit 80f94d8

Please sign in to comment.