Made logo show up, and fixed notification loading problems onprem

This commit is contained in:
Frikky
2024-01-25 20:13:45 +01:00
parent 7a09037604
commit d6f9c7b6b3
4 changed files with 17 additions and 7 deletions
+3 -2
View File
@@ -8,8 +8,8 @@ import Workflows from "./views/Workflows";
import GettingStarted from "./views/GettingStarted";
import AngularWorkflow from "./views/AngularWorkflow.jsx";
//import Header from "./components/NewHeader.jsx";
import Header from "./components/Header.jsx";
import Header from "./components/NewHeader.jsx";
//import Header from "./components/Header.jsx";
import theme from "./theme";
import Apps from "./views/Apps";
import AppCreator from "./views/AppCreator";
@@ -240,6 +240,7 @@ const App = (message, props) => {
setCookie={setCookie}
cookies={cookies}
checkLogin={checkLogin}
notifications={notifications}
{...props}
/>
}
+5 -4
View File
@@ -235,7 +235,7 @@ const Header = (props) => {
setLoginHoverColor(hoverOutColor);
};
const notificationWidth = 300
const notificationWidth = 335
const imagesize = 22;
const boxColor = "#86c142";
@@ -398,7 +398,8 @@ const Header = (props) => {
<Button
color="primary"
variant="contained"
style={{ marginLeft: 30 }}
disabled={notifications.filter((data) => !data.read).length === 0}
style={{ marginLeft: 30, }}
onClick={() => {
clearNotifications();
}}
@@ -629,7 +630,7 @@ const Header = (props) => {
};
// Handle top bar or something
const defaultTop = isCloud ? 0 : 7;
const defaultTop = -2
const loginTextBrowser = !isLoggedIn ? (
<div
style={{
@@ -662,7 +663,7 @@ const Header = (props) => {
<img
src={"/images/logos/topleft_logo.svg"}
alt="shuffle logo"
style={{ height: 25, marginTop: 5, }}
style={{ height: 25, }}
/>
</Grid>
</Link>