Skip to content

Commit 1b5d78d

Browse files
show help for mini apps in non full screen mode (#44)
1 parent ed2d4d8 commit 1b5d78d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/viewer/ComponentViewerStateCreator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,17 @@ export class ComponentViewerStateCreator {
3535
const fullScreenValue = searchParams.get(queryParamNames.isFullScreen) || 'false';
3636
const isFullScreen = fullScreenValue === 'true';
3737

38+
const helpOnValue = searchParams.get(queryParamNames.isHelpOn) || 'false';
39+
const isHelpOn = helpOnValue === 'true';
40+
3841
const miniAppByUrl = this.miniAppByUrl(path + '?' + search);
3942
if (miniAppByUrl) {
4043
return {
4144
registryName: miniAppByUrl.registry.name,
4245
demoName: miniAppByUrl.demoEntry.name,
4346
entryTitle: miniAppByUrl.demoEntry.firstEntryTitle,
4447
isFullScreen,
45-
isHelpOn: false,
48+
isHelpOn: isHelpOn,
4649
filterText: '',
4750
selectedToolbarItems
4851
};
@@ -57,9 +60,6 @@ export class ComponentViewerStateCreator {
5760
const entryTitle = searchParams.get(queryParamNames.entryTitle) ||
5861
ComponentViewerStateCreator.firstTitleByDemoName(registry, demoName);
5962

60-
const helpOnValue = searchParams.get(queryParamNames.isHelpOn) || 'false';
61-
const isHelpOn = helpOnValue === 'true';
62-
6363
return {
6464
registryName,
6565
demoName,

0 commit comments

Comments
 (0)