Skip to content

Commit

Permalink
[Cherry-Pick-Enterprise][SDL-5855] Fixed demo link workflow to cover …
Browse files Browse the repository at this point in the history
…cases when browser has an active password manager
  • Loading branch information
mkaliberda committed Jan 16, 2025
1 parent 57ae530 commit c153583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/ui/src/components/Layout/LayoutConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ const MENU_ITEMS_EXTERNAL = [
title: i18n.t("layout:menu-external.demo-title"),
tooltip: i18n.t("layout:menu-external.demo-tooltip"),
id: "navDemos",
target: "_blank",
orderIndex: 1,
isHidden: false,
iconfn: (iconProps) => <DriveEtaIcon {...iconProps} />,
Expand Down
9 changes: 2 additions & 7 deletions src/ui/src/containers/Demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,14 @@ License along with SensiML Piccolo AI. If not, see <https://www.gnu.org/licenses
*/

import React, { useEffect } from "react";
import { useDispatch } from "react-redux";
import { Redirect } from "react-router-dom";
import { resetApp } from "store/auth/actions";
import { ROUTES } from "routers";

const Demo = () => {
const dispatch = useDispatch();

useEffect(() => {
dispatch(resetApp());
window.open(`${ROUTES.AUTH.child.LOGIN.fullPath}?demo`, "_blank");
}, []);

return <Redirect to={`${ROUTES.AUTH.child.LOGIN.fullPath}?demo`} />;
return <div />;
};

export default Demo;

0 comments on commit c153583

Please sign in to comment.