mirror of
https://github.com/apache/superset.git
synced 2026-05-11 10:55:43 +00:00
Re-enable rule line-between-class-members (#10862)
This commit is contained in:
committed by
GitHub
parent
91b8c8afc9
commit
e28f3d6220
@@ -60,12 +60,14 @@ export default class ViewportControl extends React.Component {
|
||||
super(props);
|
||||
this.onChange = this.onChange.bind(this);
|
||||
}
|
||||
|
||||
onChange(ctrl, value) {
|
||||
this.props.onChange({
|
||||
...this.props.value,
|
||||
[ctrl]: value,
|
||||
});
|
||||
}
|
||||
|
||||
renderTextControl(ctrl) {
|
||||
return (
|
||||
<div key={ctrl}>
|
||||
@@ -78,6 +80,7 @@ export default class ViewportControl extends React.Component {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
renderPopover() {
|
||||
return (
|
||||
<Popover id={`filter-popover-${this.props.name}`} title="Viewport">
|
||||
@@ -85,6 +88,7 @@ export default class ViewportControl extends React.Component {
|
||||
</Popover>
|
||||
);
|
||||
}
|
||||
|
||||
renderLabel() {
|
||||
if (this.props.value.longitude && this.props.value.latitude) {
|
||||
return `${decimal2sexagesimal(
|
||||
@@ -93,6 +97,7 @@ export default class ViewportControl extends React.Component {
|
||||
}
|
||||
return 'N/A';
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user