From d42a08f114d78d46a8ab88f2d443606b2bfe4cc8 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Thu, 12 May 2022 13:47:58 +0300 Subject: [PATCH] Show UpdateButton in topbar Signed-off-by: Alex Andreev --- src/renderer/components/layout/top-bar/top-bar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/layout/top-bar/top-bar.tsx b/src/renderer/components/layout/top-bar/top-bar.tsx index 158fe84276..1f6d138785 100644 --- a/src/renderer/components/layout/top-bar/top-bar.tsx +++ b/src/renderer/components/layout/top-bar/top-bar.tsx @@ -11,7 +11,7 @@ import { Icon } from "../../icon"; import { observable } from "mobx"; import { ipcRendererOn } from "../../../../common/ipc"; import { watchHistoryState } from "../../../remote-helpers/history-updater"; -import { cssNames } from "../../../utils"; +import { cssNames, noop } from "../../../utils"; import topBarItemsInjectable from "./top-bar-items/top-bar-items.injectable"; import { withInjectables } from "@ogre-tools/injectable-react"; import type { TopBarRegistration } from "./top-bar-registration"; @@ -23,6 +23,7 @@ import type { NavigateToCatalog } from "../../../../common/front-end-routing/rou import navigateToCatalogInjectable from "../../../../common/front-end-routing/routes/catalog/navigate-to-catalog.injectable"; import catalogRouteInjectable from "../../../../common/front-end-routing/routes/catalog/catalog-route.injectable"; import routeIsActiveInjectable from "../../../routes/route-is-active.injectable"; +import { UpdateButton } from "../../update-button"; interface Dependencies { navigateToCatalog: NavigateToCatalog; @@ -114,6 +115,7 @@ const NonInjectedTopBar = observer(({ items, navigateToCatalog, catalogRouteIsAc onClick={goForward} disabled={!nextEnabled.get()} /> +
{renderRegisteredItems(items.get())}