1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

F #3951: Fix provider configure (#850)

This commit is contained in:
Sergio Betanzos 2021-02-22 10:36:25 +01:00 committed by GitHub
parent 657933593e
commit c8346f97ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 7 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -1,4 +1,4 @@
import React, { memo, useState, useEffect, useMemo } from 'react'
import React, { memo, useMemo } from 'react'
import PropTypes from 'prop-types'
import ProviderIcon from '@material-ui/icons/Public'

View File

@ -1,7 +1,7 @@
import { makeStyles } from '@material-ui/core'
export default makeStyles(theme => ({
root: ({ isSelected, disableFilterImage }) => ({
root: ({ isSelected }) => ({
height: '100%',
transition: theme.transitions.create(
['background-color', 'box-shadow'], { duration: '0.2s' }
@ -15,8 +15,7 @@ export default makeStyles(theme => ({
'& .badge': {
color: theme.palette.secondary.main,
backgroundColor: theme.palette.secondary.contrastText
},
'& $subheader': { color: 'inherit' }
}
})
}),
actionArea: {
@ -64,6 +63,8 @@ export default makeStyles(theme => ({
: theme.palette.text.primary
},
subheader: {
color: ({ isSelected }) =>
isSelected ? 'inherit' : theme.palette.text.secondary,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'initial',

View File

@ -104,7 +104,7 @@ function ProviderCreateForm () {
const {
PLAIN: { location_key: locationKey } = {},
PROVISION_BODY: {
connection: { [locationKey]: connectionEditable },
connection: { [locationKey]: _, ...connectionEditable },
description,
name
}

View File

@ -17,7 +17,7 @@ function ProvisionCreateForm () {
const [uuid, setUuid] = useState(undefined)
const { getProvision } = useSocket()
const { getProviders, createProvision, providers } = useProvision()
const { getProviders, createProvision } = useProvision()
const { data, fetchRequest, loading, error } = useFetch(getProviders)