Restore schedule export option for all types (#1088)

Fixes #1036
This commit is contained in:
Matias Bordese 2023-01-05 12:42:27 -03:00 committed by GitHub
parent 802e3964e9
commit 7d9e844068
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,11 +147,9 @@ class SchedulePage extends React.Component<SchedulePageProps, SchedulePageState>
)}
<HorizontalGroup>
<HorizontalGroup>
{schedule?.type === ScheduleType.Ical && (
<Button variant="secondary" onClick={this.handleExportClick()}>
Export
</Button>
)}
<Button variant="secondary" onClick={this.handleExportClick()}>
Export
</Button>
{(schedule?.type === ScheduleType.Ical || schedule?.type === ScheduleType.Calendar) && (
<Button variant="secondary" onClick={this.handleReloadClick(scheduleId)}>