From 94236a1a012bbc1d4e041f0d84cfbe27619cadf2 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:55:35 +0530 Subject: [PATCH] Bug Fixes in Snapshot Policy: Schedule Editing and Index Expression Display (#1207) (#1208) (cherry picked from commit 657a6990dfbf2574c7f2d5b8de39c3653d4d09a0) Signed-off-by: Sandeep Kumawat Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: Sandeep Kumawat Co-authored-by: Ramakrishna Chilaka <49393831+RamakrishnaChilaka@users.noreply.github.com> --- .../components/CronSchedule/CronSchedule.tsx | 6 +++--- .../CreateSnapshotPolicy/CreateSnapshotPolicy.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/pages/CreateSnapshotPolicy/components/CronSchedule/CronSchedule.tsx b/public/pages/CreateSnapshotPolicy/components/CronSchedule/CronSchedule.tsx index bf07afd38..1475a947e 100644 --- a/public/pages/CreateSnapshotPolicy/components/CronSchedule/CronSchedule.tsx +++ b/public/pages/CreateSnapshotPolicy/components/CronSchedule/CronSchedule.tsx @@ -88,12 +88,12 @@ const CronSchedule = ({ function onDayOfWeekChange(dayOfWeek: string) { setWeek(dayOfWeek); - // changeCron({ dayOfWeek }); + changeCron({ dayOfWeek }); } function onDayOfMonthChange(dayOfMonth: number) { setMonth(dayOfMonth); - // changeCron({ dayOfMonth }); + changeCron({ dayOfMonth }); } function onStartTimeChange(date: moment.Moment) { @@ -101,7 +101,7 @@ const CronSchedule = ({ const hour = date.hour(); setMinute(minute); setHour(hour); - // changeCron({ minute, hour }); + changeCron({ minute, hour }); } function onTypeChange(e: ChangeEvent) { diff --git a/public/pages/CreateSnapshotPolicy/containers/CreateSnapshotPolicy/CreateSnapshotPolicy.tsx b/public/pages/CreateSnapshotPolicy/containers/CreateSnapshotPolicy/CreateSnapshotPolicy.tsx index 587192a34..6b7012cdc 100644 --- a/public/pages/CreateSnapshotPolicy/containers/CreateSnapshotPolicy/CreateSnapshotPolicy.tsx +++ b/public/pages/CreateSnapshotPolicy/containers/CreateSnapshotPolicy/CreateSnapshotPolicy.tsx @@ -477,7 +477,7 @@ export class CreateSnapshotPolicy extends MDSEnabledComponent option.label).join(", ")), }); };