Make fieldNames opaque if they are in process of moving
parent
f935478cff
commit
7e60df6b6b
|
@ -12,6 +12,7 @@ interface Props {
|
||||||
displayName: string
|
displayName: string
|
||||||
visible: boolean
|
visible: boolean
|
||||||
onFieldUpdate?: (field: Field) => void
|
onFieldUpdate?: (field: Field) => void
|
||||||
|
opacity: number
|
||||||
}
|
}
|
||||||
|
|
||||||
class GraphOptionsCustomizableField extends PureComponent<Props, {}> {
|
class GraphOptionsCustomizableField extends PureComponent<Props, {}> {
|
||||||
|
@ -33,11 +34,12 @@ class GraphOptionsCustomizableField extends PureComponent<Props, {}> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
const {internalName, displayName, visible} = this.props
|
const {internalName, displayName, visible, opacity} = this.props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="customizable-field">
|
<div className="customizable-field">
|
||||||
<div
|
<div
|
||||||
|
style={{opacity: opacity}}
|
||||||
className={
|
className={
|
||||||
visible
|
visible
|
||||||
? 'customizable-field--label'
|
? 'customizable-field--label'
|
||||||
|
|
|
@ -208,6 +208,7 @@ export const orderTableColumns = (data, fieldNames) => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
return orderedData[0].length ? orderedData : [[]]
|
return orderedData[0].length ? orderedData : [[]]
|
||||||
|
}
|
||||||
|
|
||||||
export const processTableData = (
|
export const processTableData = (
|
||||||
data,
|
data,
|
||||||
|
|
Loading…
Reference in New Issue