mirror of
https://github.com/prymitive/karma
synced 2026-05-21 04:33:07 +00:00
fix(ui): show navbar until we know there are no upstreams
This commit is contained in:
committed by
Łukasz Mierzwa
parent
8923316e43
commit
6bcba6d043
@@ -89,7 +89,7 @@ describe("<NavBar />", () => {
|
||||
instances: [],
|
||||
clusters: {},
|
||||
});
|
||||
alertStore.info.setTotalAlerts(15);
|
||||
alertStore.info.setTimestamp("123");
|
||||
const tree = MountedNavbar();
|
||||
expect(tree.find("span.navbar-brand")).toHaveLength(0);
|
||||
});
|
||||
|
||||
@@ -117,20 +117,23 @@ const NavBar: FC<{
|
||||
} align-items-start`}
|
||||
>
|
||||
<span className="navbar-nav d-flex flex-row">
|
||||
{alertStore.data.upstreams.instances.length === 0 ? null : (
|
||||
{alertStore.info.timestamp !== "" &&
|
||||
alertStore.data.upstreams.instances.length === 0 ? null : (
|
||||
<span className="navbar-brand p-0 my-0 mx-2 h1 d-none d-sm-block">
|
||||
<OverviewModal alertStore={alertStore} />
|
||||
</span>
|
||||
)}
|
||||
<Fetcher alertStore={alertStore} settingsStore={settingsStore} />
|
||||
</span>
|
||||
{alertStore.data.upstreams.instances.length === 0 ? null : (
|
||||
{alertStore.info.timestamp !== "" &&
|
||||
alertStore.data.upstreams.instances.length === 0 ? null : (
|
||||
<FilterInput
|
||||
alertStore={alertStore}
|
||||
settingsStore={settingsStore}
|
||||
/>
|
||||
)}
|
||||
{alertStore.data.upstreams.instances.length === 0 ? null : (
|
||||
{alertStore.info.timestamp !== "" &&
|
||||
alertStore.data.upstreams.instances.length === 0 ? null : (
|
||||
<ul className="navbar-nav flex-wrap flex-shrink-1 ms-1">
|
||||
<AppToasts alertStore={alertStore} />
|
||||
<SilenceModal
|
||||
|
||||
Reference in New Issue
Block a user