mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-12 09:17:41 +03:00
parent
33fd6138cd
commit
96e70f7314
@ -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 })}>
|
||||
|
@ -67,6 +67,7 @@ const Sidebar = ({ endpoints }) => {
|
||||
}}
|
||||
anchor='left'
|
||||
open={isFixMenu}
|
||||
PaperProps={{ 'data-cy': 'sidebar' }}
|
||||
>
|
||||
<Box className={classes.header}>
|
||||
<OpenNebulaLogo
|
||||
|
@ -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 (
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user