mirror of
https://github.com/enso-org/enso.git
synced 2024-11-23 16:18:23 +03:00
Rollback cloud options groups (#6331)
* rollback cloud options groups; fix ide rendering regression * fix new dashboard option description * pr changes * improve authentication description
This commit is contained in:
parent
74c0718604
commit
27be43204c
@ -1,5 +1,9 @@
|
||||
{
|
||||
"options": {
|
||||
"authentication": {
|
||||
"value": false,
|
||||
"description": "Determines whether user authentication is enabled. This option is always true when executed in the cloud."
|
||||
},
|
||||
"dataCollection": {
|
||||
"value": true,
|
||||
"description": "Determines whether anonymous usage data is to be collected.",
|
||||
@ -115,6 +119,10 @@
|
||||
"value": false,
|
||||
"description": "Show Vector Editor widget on nodes.",
|
||||
"primary": false
|
||||
},
|
||||
"newDashboard": {
|
||||
"value": false,
|
||||
"description": "Determines whether the new dashboard with cloud integration is enabled."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -143,19 +151,6 @@
|
||||
"primary": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"cloud": {
|
||||
"description": "Options related to cloud authentication, project storage, and project execution.",
|
||||
"options": {
|
||||
"authentication": {
|
||||
"value": false,
|
||||
"description": "Determines whether user authentication is enabled. This option is disregarded if the application is executed in the cloud."
|
||||
},
|
||||
"dashboard": {
|
||||
"value": false,
|
||||
"description": "Determines whether the dashboard (containing the directory listing) is enabled. This option is disregarded if the application is executed in the cloud."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -156,8 +156,8 @@ class Main {
|
||||
displayDeprecatedVersionDialog()
|
||||
} else {
|
||||
if (
|
||||
(contentConfig.OPTIONS.groups.cloud.options.authentication.value ||
|
||||
contentConfig.OPTIONS.groups.cloud.options.dashboard.value) &&
|
||||
(contentConfig.OPTIONS.options.authentication.value ||
|
||||
contentConfig.OPTIONS.groups.featurePreview.options.newDashboard.value) &&
|
||||
contentConfig.OPTIONS.groups.startup.options.entry.value ===
|
||||
contentConfig.OPTIONS.groups.startup.options.entry.default
|
||||
) {
|
||||
@ -182,7 +182,9 @@ class Main {
|
||||
* where it will be called only once. */
|
||||
let appInstanceRan = false
|
||||
const onAuthenticated = () => {
|
||||
if (!contentConfig.OPTIONS.groups.cloud.options.dashboard.value) {
|
||||
if (
|
||||
!contentConfig.OPTIONS.groups.featurePreview.options.newDashboard.value
|
||||
) {
|
||||
hideAuth()
|
||||
if (!appInstanceRan) {
|
||||
appInstanceRan = true
|
||||
@ -194,7 +196,8 @@ class Main {
|
||||
logger,
|
||||
platform,
|
||||
projectManager: projectManager.ProjectManager.default(),
|
||||
showDashboard: contentConfig.OPTIONS.groups.cloud.options.dashboard.value,
|
||||
showDashboard:
|
||||
contentConfig.OPTIONS.groups.featurePreview.options.newDashboard.value,
|
||||
onAuthenticated,
|
||||
})
|
||||
} else {
|
||||
|
@ -43,8 +43,14 @@ export function run(props: app.AppProps) {
|
||||
if (root == null) {
|
||||
logger.error(`Could not find root element with ID '${ROOT_ELEMENT_ID}'.`)
|
||||
} else {
|
||||
// This element is re-added by the `Ide` component.
|
||||
document.getElementById(IDE_ELEMENT_ID)?.remove()
|
||||
// FIXME: https://github.com/enso-org/cloud-v2/issues/386
|
||||
// Temporary workaround on hiding the Enso root element preventing it from
|
||||
// rendering next to authentication templates. We are uncovering this once the
|
||||
// authentication library sets the user session.
|
||||
const ide = document.getElementById(IDE_ELEMENT_ID)
|
||||
if (ide != null) {
|
||||
ide.style.display = 'none'
|
||||
}
|
||||
reactDOM.createRoot(root).render(<App {...props} />)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user