]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: use service call instead of form component 48134/head
authorNizamudeen A <nia@redhat.com>
Fri, 16 Sep 2022 07:20:26 +0000 (12:50 +0530)
committerAashish Sharma <aasharma@redhat.com>
Mon, 19 Sep 2022 05:50:55 +0000 (11:20 +0530)
commitd30d92298a0122ae04855fe290843046cb106a81
tree1d6d71da315d7e56ac3bdcfd1f2e4e830ae49c8d
parent71570083184b3654e6de781cf0f5258b1dac6253
mgr/dashboard: use service call instead of form component

For creating the silence from the notification sidebar, instead of using
the silence form which will require initializing the whole component on
the landing page, we can just call the prometheus service and pass on
the required data to the service call. This will fix showing the
`Prometheus not configured` error everytime we visit the landing page when
the prometheus is not configured

Fixes: https://tracker.ceph.com/issues/57576
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.ts