|
1 | 1 | /* |
2 | 2 | * This file is part of Edgehog. |
3 | 3 | * |
4 | | - * Copyright 2021-2025 SECO Mind Srl |
| 4 | + * Copyright 2021-2026 SECO Mind Srl |
5 | 5 | * |
6 | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
7 | 7 | * you may not use this file except in compliance with the License. |
@@ -70,6 +70,7 @@ import DeploymentCampaign from "@/pages/DeploymentCampaign"; |
70 | 70 | import DeploymentCampaignCreate from "@/pages/DeploymentCampaignCreate"; |
71 | 71 | import Deployment from "@/pages/Deployment"; |
72 | 72 |
|
| 73 | +import { isSecoGarageMode } from "@/api"; |
73 | 74 | import { bugs, repository, version } from "../package.json"; |
74 | 75 |
|
75 | 76 | type RouterRule = { |
@@ -139,20 +140,20 @@ function App() { |
139 | 140 |
|
140 | 141 | return ( |
141 | 142 | <div data-testid="app" className="d-flex vh-100 flex-column"> |
142 | | - {auth.isAuthenticated && ( |
| 143 | + {auth.isAuthenticated && !isSecoGarageMode && ( |
143 | 144 | <header className="flex-grow-0"> |
144 | 145 | <Topbar /> |
145 | 146 | </header> |
146 | 147 | )} |
147 | 148 | <main className="vh-100 flex-grow-1 d-flex overflow-hidden"> |
148 | | - {auth.isAuthenticated && ( |
| 149 | + {auth.isAuthenticated && !isSecoGarageMode && ( |
149 | 150 | <aside className="flex-grow-0 flex-shrink-0 overflow-auto"> |
150 | 151 | <Sidebar /> |
151 | 152 | </aside> |
152 | 153 | )} |
153 | 154 | <section className="flex-grow-1 overflow-auto">{RouterElement}</section> |
154 | 155 | </main> |
155 | | - {auth.isAuthenticated && ( |
| 156 | + {auth.isAuthenticated && !isSecoGarageMode && ( |
156 | 157 | <Footer |
157 | 158 | appName={"Edgehog Device Manager"} |
158 | 159 | appVersion={version} |
|
0 commit comments