]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix snap schedule delete retention 56861/head
authorIvo Almeida <ialmeida@redhat.com>
Mon, 8 Apr 2024 13:39:49 +0000 (14:39 +0100)
committerIvo Almeida <ialmeida@redhat.com>
Fri, 12 Apr 2024 14:58:20 +0000 (15:58 +0100)
Fixes: https://tracker.ceph.com/issues/65370
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
(cherry picked from commit 985637825a48a678b0d88887c5e322de65599fc7)

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-snapshotschedule-list/cephfs-snapshotschedule-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/cephfs-snapshot-schedule.service.ts

index 9a131a1e80b7c0247e10ca32c4b4d2210b870b40..53c8e924e82e7e3863d5bf4434a9cba69bba185a 100644 (file)
@@ -300,8 +300,7 @@ export class CephfsSnapshotscheduleListComponent
         const interval = r.substring(0, r.length - 1);
         return `${interval}-${frequency}`;
       })
-      ?.join('|')
-      ?.toLocaleLowerCase();
+      ?.join('|');
 
     this.modalRef = this.modalService.show(CriticalConfirmationModalComponent, {
       itemDescription: $localize`snapshot schedule`,
index ade935a9299a4ebf6a5defe8024b4b5c549c53e6..b06b9b51f9966095e57a27aacf50435fcc0aa302 100644 (file)
@@ -149,7 +149,7 @@ export class CephfsSnapshotScheduleService {
             retentionCopy: this.parseRetentionCopy(snapItem?.retention),
             retention: Object.values(snapItem?.retention || [])?.length
               ? Object.entries(snapItem.retention)
-                  ?.map?.(([frequency, interval]) => `${interval}${frequency.toLocaleUpperCase()}`)
+                  ?.map?.(([frequency, interval]) => `${interval}${frequency}`)
                   .join(' ')
               : '-'
           })),