Skip to content

Commit

Permalink
Hide export column if option disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed May 22, 2024
1 parent 9616efc commit ababf7c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ export class MotionExportDialogComponent extends BaseUiComponent implements OnIn
// restore selection or set default
this.store.get<MotionExportInfo>(`motion_export_selection`).then(restored => {
if (restored) {
if (!this.workingGroupSpeakerActive && restored.metaInfo?.includes(`working_group_speakers`)) {
restored.metaInfo.splice(restored.metaInfo.indexOf(`working_group_speakers`));
}

this.exportForm.patchValue(restored);
} else {
this.exportForm.patchValue(this.defaults);
Expand Down

0 comments on commit ababf7c

Please sign in to comment.