('');
@@ -87,6 +53,24 @@ export default function NavigationBar() {
return activeKey === menuItemPath;
};
+ const loginAndLogoutAction = () => {
+ if (UserService.isLoggedIn()) {
+ return (
+ <>
+ {UserService.getUsername()}
+
+
+
+ >
+ );
+ }
+ return (
+
+
+
+ );
+ };
+
if (activeKey) {
return (
@@ -112,6 +96,7 @@ export default function NavigationBar() {
Process Instances
+ {loginAndLogoutAction()}