]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: use service call instead of form component 48065/head
authorNizamudeen A <nia@redhat.com>
Fri, 16 Sep 2022 07:20:26 +0000 (12:50 +0530)
committerAashish Sharma <aasharma@redhat.com>
Thu, 22 Sep 2022 05:30:24 +0000 (11:00 +0530)
commit1c62f21ef93d0aa262abc685476c3480faa8f0a5
treef202b89a4b29c1be453429b85a3d7fa110f33461
parent3db1eaa97ab2f0a32dc1da87de4a16d49c530ee7
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>
(cherry picked from commit d30d92298a0122ae04855fe290843046cb106a81)
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