Skip to content

Commit

Permalink
feat(gui): limited onboarding to hosted Mender to ensure a streamline…
Browse files Browse the repository at this point in the history
…d experience

Ticket: MEN-7896
Changelog: Title
Signed-off-by: Manuel Zedel <manuel.zedel@northern.tech>
  • Loading branch information
mzedel committed Jan 8, 2025
1 parent 5c3cd02 commit cee60f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/js/store/storehooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const receivedInventoryDevice = {

const appInitActions = [
{ type: userActions.successfullyLoggedIn.type }, //, payload: { token }
{ type: onboardingActions.setOnboardingComplete.type, payload: false },
{ type: onboardingActions.setOnboardingComplete.type, payload: true },
{ type: onboardingActions.setDemoArtifactPort.type, payload: 85 },
{ type: appActions.setFeatures.type, payload: { ...defaultState.app.features, hasMultitenancy: true } },
{
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/js/store/storehooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ export const parseEnvironmentInfo = () => (dispatch, getState) => {
metaMenderVersion,
services = {}
} = mender_environment;
onboardingComplete = stringToBoolean(features.isEnterprise) || stringToBoolean(disableOnboarding) || onboardingComplete;
demoArtifactPort = port || demoArtifactPort;
environmentData = environmentDatas.reduce((accu, flag) => ({ ...accu, [flag]: mender_environment[flag] || state.app[flag] }), {});
environmentFeatures = {
...featureFlags.reduce((accu, flag) => ({ ...accu, [flag]: stringToBoolean(features[flag]) }), {}),
isHosted: features.isHosted || window.location.hostname.includes('hosted.mender.io'),
isDemoMode: stringToBoolean(isDemoMode || features.isDemoMode)
};
onboardingComplete = !stringToBoolean(features.isHosted) || stringToBoolean(disableOnboarding) || onboardingComplete;
versionInfo = {
docs: isNaN(integrationVersion.charAt(0)) ? '' : integrationVersion.split('.').slice(0, 2).join('.'),
remainder: {
Expand Down

0 comments on commit cee60f8

Please sign in to comment.