You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-15 23:54:29 +02:00
* Partial fix for #2430 * Fix #2430. Bypass welcome screen for Personal Desktop * Skip welcome page only for Personal Desktop * Removed API changes. Webapp changes were sufficient Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
This commit is contained in:
@ -102,7 +102,7 @@ const App = (props: Props): JSX.Element => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const continueToWelcomeScreen = () => {
|
const continueToWelcomeScreen = () => {
|
||||||
return loggedIn === true && !me?.props[UserPropPrefix + UserSettingKey.WelcomePageViewed]
|
return (me?.id !== 'single-user') && loggedIn === true && !(me?.props && me?.props[UserPropPrefix + UserSettingKey.WelcomePageViewed])
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -86,7 +86,7 @@ const WelcomePage = () => {
|
|||||||
history.replace(newPath)
|
history.replace(newPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me?.props[UserPropPrefix + UserSettingKey.WelcomePageViewed]) {
|
if (me?.props && me?.props[UserPropPrefix + UserSettingKey.WelcomePageViewed]) {
|
||||||
goForward()
|
goForward()
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ export const getOnboardingTourStarted = createSelector(
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return Boolean(me.props.focalboard_onboardingTourStarted)
|
return Boolean(me.props?.focalboard_onboardingTourStarted)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -123,11 +123,11 @@ export const getOnboardingTourStep = createSelector(
|
|||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|
||||||
return me.props.focalboard_onboardingTourStep
|
return me.props?.focalboard_onboardingTourStep
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
export const getOnboardingTourCategory = createSelector(
|
export const getOnboardingTourCategory = createSelector(
|
||||||
getMe,
|
getMe,
|
||||||
(me): string => (me ? me.props.focalboard_tourCategory : ''),
|
(me): string => (me ? me.props?.focalboard_tourCategory : ''),
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user