Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.4 KiB |
@ -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'
|
||||
|
@ -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',
|
||||
|
@ -104,7 +104,7 @@ function ProviderCreateForm () {
|
||||
const {
|
||||
PLAIN: { location_key: locationKey } = {},
|
||||
PROVISION_BODY: {
|
||||
connection: { [locationKey]: connectionEditable },
|
||||
connection: { [locationKey]: _, ...connectionEditable },
|
||||
description,
|
||||
name
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
|