-
);
diff --git a/frontend/src/components/app-wrapper/topbar.tsx b/frontend/src/components/app-wrapper/topbar.tsx
index 0e2b889..d45f1a2 100644
--- a/frontend/src/components/app-wrapper/topbar.tsx
+++ b/frontend/src/components/app-wrapper/topbar.tsx
@@ -1,16 +1,23 @@
-import { useNavigate } from "@solidjs/router";
+import { ProcessingImages } from "@components/notifications/ProcessingImage";
+import { useLocation, useNavigate } from "@solidjs/router";
import { IconArrowLeft } from "@tabler/icons-solidjs";
-import { Component } from "solid-js";
+import { Component, Show } from "solid-js";
export const Topbar: Component = () => {
const nav = useNavigate();
+ const location = useLocation();
return (
-
-
nav(-1)}>
-
-
+
+
+ nav(-1)}>
+
+
+
Haystack
+
);
};
diff --git a/frontend/src/components/app-wrapper/with-topbar-and-dock.tsx b/frontend/src/components/app-wrapper/with-topbar-and-dock.tsx
new file mode 100644
index 0000000..e1923e5
--- /dev/null
+++ b/frontend/src/components/app-wrapper/with-topbar-and-dock.tsx
@@ -0,0 +1,13 @@
+import { Component, ParentProps } from "solid-js";
+import { Topbar } from "./topbar";
+import { Dock } from "./dock";
+
+export const WithTopbarAndDock: Component
= (props) => {
+ return (
+ <>
+
+ {props.children}
+
+ >
+ );
+};
diff --git a/frontend/src/components/notifications/ProcessingImage.tsx b/frontend/src/components/notifications/ProcessingImage.tsx
index 1bfa294..6e28daa 100644
--- a/frontend/src/components/notifications/ProcessingImage.tsx
+++ b/frontend/src/components/notifications/ProcessingImage.tsx
@@ -11,27 +11,29 @@ export const ProcessingImages: Component = () => {
Object.keys(notifications.state.ProcessingImages).length;
return (
- 0}>
-
-
+
+
+ 0}>
+
+ Processing {processingNumber()}{" "}
+ {processingNumber() === 1 ? "image" : "images"}
+
+
+ }
+ >
+
+
+
+
+
0}
- fallback={No images to process
}
+ when={
+ Object.entries(notifications.state.ProcessingImages).length > 0
+ }
+ fallback={No images to process
}
>
-
- Processing {processingNumber()}{" "}
- {processingNumber() === 1 ? "image" : "images"}
-
-
- }
- >
-
-
-
-
-
{([id, _image]) => (
@@ -54,9 +56,9 @@ export const ProcessingImages: Component = () => {
)}
-
-
-
-
+
+
+
+
);
};