From 0f28ecccb0dbd7c2f39e2c4676e17ca0c38464a2 Mon Sep 17 00:00:00 2001 From: Ravi Pendurty Date: Wed, 3 Feb 2021 16:10:57 +0100 Subject: Migrate odlux Migrate odlux to Aluminium Issue-ID: CCSDK-3136 Signed-off-by: Ravi Pendurty Change-Id: I3200a809a31e87021c95fe103a9c95e03011f503 Signed-off-by: Ravi Pendurty --- sdnr/wt/odlux/framework/src/app.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sdnr/wt/odlux/framework/src/app.tsx') diff --git a/sdnr/wt/odlux/framework/src/app.tsx b/sdnr/wt/odlux/framework/src/app.tsx index 791f46d0a..6a24bfb2a 100644 --- a/sdnr/wt/odlux/framework/src/app.tsx +++ b/sdnr/wt/odlux/framework/src/app.tsx @@ -57,6 +57,8 @@ declare module '@material-ui/core/styles/createMuiTheme' { } } +export const transportPCEUrl = "transportPCEUrl"; + export const runApplication = () => { const applicationStore = applicationStoreCreator(); @@ -79,6 +81,7 @@ export const runApplication = () => { startHistoryListener(applicationStore); startForceLogoutService(applicationStore); startNotificationService(applicationStore); + addTransportPCEUrl(); const App = (): JSX.Element => ( @@ -91,3 +94,11 @@ export const runApplication = () => { ReactDOM.render(, document.getElementById('app')); }; + +const addTransportPCEUrl = () =>{ + const url = window.localStorage.getItem(transportPCEUrl); + if(url === null){ + window.localStorage.setItem(transportPCEUrl, "http://10.20.6.32:18082/"); + console.log("set transport url :D") + } +} -- cgit 1.2.3-korg