diff --git a/src/back/routes/dashboard.sreact.tsx b/src/back/routes/dashboard.sreact.tsx index 3f09cf8..76e8096 100644 --- a/src/back/routes/dashboard.sreact.tsx +++ b/src/back/routes/dashboard.sreact.tsx @@ -40,7 +40,11 @@ export default new (class DashboardPage extends StatefulPage "" }); + if (ctx.headers["just-data"]) { + return content; + } else { + return html(ctx, "Dashboard", content, { navbar: () => "" }); + } } render(ctx: BaseContext, state: State, inputs: Record) { @@ -75,13 +79,24 @@ export default new (class DashboardPage extends StatefulPage - { - /* HTML */ `` - } + {ctx.headers["just-data"] + ? "" + : /* HTML */ ``} ); }