Skip to content

Commit

Permalink
Hide committee submitter select field if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl committed May 15, 2024
1 parent cae7990 commit 7946bb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h4>
</mat-form-field>
</div>

<div *ngIf="useAdditionalInput" class="text-field-container">
<div *ngIf="useAdditionalInput && isSecondSelectorValuesFilled" class="text-field-container">
<mat-form-field>
<mat-label>{{ secondSelectorLabel }}</mat-label>
<os-list-search-selector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ export class MotionManageMotionMeetingUsersComponent<V extends BaseHasMeetingUse
}
}

public get isSecondSelectorValuesFilled(): boolean {
return this.secondSelectorValues.length > 0;
}

private updateData(models: V[]): void {
if (!this.isEditMode) {
this.editSubject.next(models);
Expand Down

0 comments on commit 7946bb7

Please sign in to comment.