]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Form retains old data when switching from edit to create mode
authorpujashahu <pshahu@redhat.com>
Thu, 11 Sep 2025 13:40:27 +0000 (19:10 +0530)
committerpujashahu <pshahu@redhat.com>
Fri, 26 Sep 2025 06:11:52 +0000 (11:41 +0530)
Fixes: https://tracker.ceph.com/issues/72989
Resolves: rhbz#2161889

Signed-off-by: pujashahu <pshahu@redhat.com>
(cherry picked from commit 918dff407d912b3a5ac068e0050467396668163c)
(cherry picked from commit da174509298da14857479515cf8e7c7ea9e541de)

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-notification-form/rgw-notification-form.component.ts

index c800a948ad1439c4ffefeba31b5d19c6d5b09729..f1bbfb56cad7d053a4278944e8ad32fc955b0091 100644 (file)
@@ -109,7 +109,6 @@ export class RgwNotificationFormComponent extends CdForm implements OnInit {
   }
 
   ngOnInit() {
-    this.editing = !!this.selectedNotification;
     this.s3KeyFilterValue = Object.values(s3KeyFilter);
     this.filterSettings.s3Key.options = this.s3KeyFilterValue;
     this.createNotificationForm();