Skip to content

Commit 59b2ade

Browse files
added standalone when not sharing credentials
1 parent 4050633 commit 59b2ade

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/application/ApplicationThunks.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
300300
setShareDetailsFromUrl(
301301
type,
302302
id,
303-
undefined,
303+
standalone,
304304
undefined,
305305
undefined,
306306
undefined,
@@ -331,6 +331,7 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
331331
*/
332332
export const onConfirmLoadSharedDashboardThunk = () => (dispatch: any, getState: any) => {
333333
try {
334+
console.log('IN');
334335
const state = getState();
335336
const { shareDetails } = state.application;
336337
dispatch(setWelcomeScreenOpen(false));
@@ -430,12 +431,14 @@ export const loadApplicationConfigThunk = () => async (dispatch: any, getState:
430431
dispatch(setSSOProviders(config.ssoProviders));
431432

432433
// Check if we are in standalone mode
433-
const standaloneShared = localStorage.getItem('standaloneShared') == 'true'; // EDGE case: from url param it could happen that we lose the value due to SSO redirect
434-
const standalone = config.standalone || standaloneShared;
434+
// const standaloneShared = localStorage.getItem('standaloneShared') == 'true'; // EDGE case: from url param it could happen that we lose the value due to SSO redirect
435+
const {standalone} = config;
436+
// || standaloneShared;
435437

436438
// if a dashboard database was previously set, remember to use it.
437439
const dashboardDatabase = state.application.standaloneDashboardDatabase;
438-
440+
console.log(`Standalone: ${ standalone}`);
441+
console.log(`Standalone Shared${ localStorage.getItem('standaloneShared')}`);
439442
dispatch(
440443
setStandaloneEnabled(
441444
standalone,

0 commit comments

Comments
 (0)