refactor: demo params
This commit is contained in:
@@ -426,6 +426,10 @@ export class WebApplication extends SNApplication implements WebApplicationInter
|
||||
this.getViewControllerManager().accountMenuController.setShow(true)
|
||||
}
|
||||
|
||||
hideAccountMenu(): void {
|
||||
this.getViewControllerManager().accountMenuController.setShow(false)
|
||||
}
|
||||
|
||||
geDefaultEditorIdentifier(currentTag?: SNTag): EditorIdentifier {
|
||||
return (
|
||||
currentTag?.preferences?.editorIdentifier ||
|
||||
|
||||
@@ -90,7 +90,11 @@ const ApplicationView: FunctionComponent<Props> = ({ application, mainApplicatio
|
||||
return
|
||||
}
|
||||
|
||||
void application.user.populateSessionFromDemoShareToken(token)
|
||||
const status = application.status.addMessage('Preparing demo...')
|
||||
void application.user.populateSessionFromDemoShareToken(token).then(() => {
|
||||
application.status.removeMessage(status)
|
||||
application.hideAccountMenu()
|
||||
})
|
||||
}, [application])
|
||||
|
||||
const onAppLaunch = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user