1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

F #5322: Fix FireEdge multiple login (#1426)

This commit is contained in:
Jorge Miguel Lobo Escalona 2021-09-01 17:41:16 +02:00 committed by GitHub
parent 33fd6138cd
commit 96e70f7314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View File

@ -66,6 +66,7 @@ const SidebarCollapseItem = ({ label, routes, icon: Icon }) => {
<ListItemText
className={classes.itemText}
data-max-label={label}
data-cy={label}
data-min-label={label.slice(0, 3)}
/>
<MIcon className={clsx({ [classes.expandIcon]: isUpLg && !isFixMenu })}>

View File

@ -67,6 +67,7 @@ const Sidebar = ({ endpoints }) => {
}}
anchor='left'
open={isFixMenu}
PaperProps={{ 'data-cy': 'sidebar' }}
>
<Box className={classes.header}>
<OpenNebulaLogo

View File

@ -109,8 +109,10 @@ const getListProviders = (res = {}, next = defaultEmptyFunction, params = {}, us
return provision
}
if (data && data.DOCUMENT_POOL && data.DOCUMENT_POOL.DOCUMENT && Array.isArray(data.DOCUMENT_POOL.DOCUMENT)) {
data.DOCUMENT_POOL.DOCUMENT = data.DOCUMENT_POOL.DOCUMENT.map(parseTemplatePlain)
if (data && data.DOCUMENT_POOL && data.DOCUMENT_POOL.DOCUMENT) {
data.DOCUMENT_POOL.DOCUMENT = Array.isArray(data.DOCUMENT_POOL.DOCUMENT)
? data.DOCUMENT_POOL.DOCUMENT.map(parseTemplatePlain)
: parseTemplatePlain(data.DOCUMENT_POOL.DOCUMENT)
}
// hide connections
if (

View File

@ -105,6 +105,7 @@ const userValidation = (user = '', token = '') => {
* @param {Function} next - express stepper
*/
const validateResourceAndSession = (req, res, next) => {
clearStates()
const { badRequest, unauthorized, serviceUnavailable } = httpCodes
let status = badRequest
if (req && req.params && req.params.resource) {