From bc2244da434297e99bf2116818ed1c8e356d7f89 Mon Sep 17 00:00:00 2001 From: Matias Bordese Date: Thu, 27 Oct 2022 09:46:04 -0300 Subject: [PATCH] Enable day selection for daily shifts in web schedule --- grafana-plugin/src/containers/RotationForm/RotationForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grafana-plugin/src/containers/RotationForm/RotationForm.tsx b/grafana-plugin/src/containers/RotationForm/RotationForm.tsx index 1242abca..82b1e707 100644 --- a/grafana-plugin/src/containers/RotationForm/RotationForm.tsx +++ b/grafana-plugin/src/containers/RotationForm/RotationForm.tsx @@ -154,7 +154,7 @@ const RotationForm: FC = observer((props) => { rolling_users: userGroups, interval: repeatEveryValue, frequency: repeatEveryPeriod, - by_day: repeatEveryPeriod === 1 ? selectedDays : null, + by_day: repeatEveryPeriod === 1 || repeatEveryPeriod === 0 ? selectedDays : null, priority_level: shiftId === 'new' ? layerPriority : shift?.priority_level, }), [ @@ -320,7 +320,7 @@ const RotationForm: FC = observer((props) => { /> - {repeatEveryPeriod === 1 && ( + {(repeatEveryPeriod === 1 || repeatEveryPeriod === 0) && (