diff --git a/frontend/src/App.js b/frontend/src/App.js index 5a561b9..c35b448 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -5,6 +5,7 @@ import { ProfileProvider, useProfile } from "./lib/profile"; import ProtectedRoute from "./components/ProtectedRoute"; import Navbar from "./components/Navbar"; import GrainOverlay from "./components/GrainOverlay"; +import ServiceStatus from "./components/ServiceStatus"; import Login from "./pages/Login"; import Register from "./pages/Register"; import Browse from "./pages/Browse"; @@ -52,6 +53,7 @@ const Shell = ({ children }) => { return ( <> {!hideChrome && user && active && } + {!hideChrome && user?.is_admin && active && } {children} diff --git a/frontend/src/components/ServiceStatus.jsx b/frontend/src/components/ServiceStatus.jsx index 6da0b04..71873f3 100644 --- a/frontend/src/components/ServiceStatus.jsx +++ b/frontend/src/components/ServiceStatus.jsx @@ -38,7 +38,10 @@ export default function ServiceStatus() { if (!services.length) return null; return ( -
+
{services.map((s) => (
- {user?.is_admin && } {continueWatching.length > 0 && ( )}