mirror of
https://github.com/apache/superset.git
synced 2026-04-28 20:44:24 +00:00
fix: broken glyphicons used in react-json-schema (#10267)
I'm working on a talk for the Airflow Summit "Advanced Apache Superset for Data Engineers" and showing the "Schedule Query" feature that Beto contributed a while back (behind a feature flag). I found that the glyphicons used in `react-json-schema` are broken and came up with an easy fix. Also other minor tweaks on the feature.
This commit is contained in:
committed by
GitHub
parent
0244e2c333
commit
11ae48062f
@@ -25,6 +25,7 @@ import { t } from '@superset-ui/translation';
|
||||
|
||||
import Button from '../../components/Button';
|
||||
import ModalTrigger from '../../components/ModalTrigger';
|
||||
import './ScheduleQueryButton.less';
|
||||
|
||||
const validators = {
|
||||
greater: (a, b) => a > b,
|
||||
@@ -159,12 +160,14 @@ class ScheduleQueryButton extends React.PureComponent {
|
||||
</Row>
|
||||
<Row>
|
||||
<Col md={12}>
|
||||
<Form
|
||||
schema={getJSONSchema()}
|
||||
uiSchema={getUISchema()}
|
||||
onSubmit={this.onSchedule}
|
||||
validate={getValidator()}
|
||||
/>
|
||||
<div className="json-schema">
|
||||
<Form
|
||||
schema={getJSONSchema()}
|
||||
uiSchema={getUISchema()}
|
||||
onSubmit={this.onSchedule}
|
||||
validate={getValidator()}
|
||||
/>
|
||||
</div>
|
||||
</Col>
|
||||
</Row>
|
||||
{this.props.scheduleQueryWarning && (
|
||||
@@ -194,7 +197,7 @@ class ScheduleQueryButton extends React.PureComponent {
|
||||
disabled={this.props.disabled}
|
||||
tooltip={this.props.tooltip}
|
||||
>
|
||||
<i className="fa fa-calendar" /> {t('Schedule Query')}
|
||||
<i className="fa fa-calendar" /> {t('Schedule')}
|
||||
</Button>
|
||||
}
|
||||
bsSize="medium"
|
||||
|
||||
Reference in New Issue
Block a user