mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
style: push bootstrap theme towards SIP-34 styles (#10056)
* feat: cartel theme * piling * more tweaks * Make things look better * lint * fix tests * paint it black * tweaks
This commit is contained in:
committed by
GitHub
parent
8e23d4f369
commit
a6390afb89
@@ -20,8 +20,10 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { ButtonGroup, OverlayTrigger, Tooltip } from 'react-bootstrap';
|
||||
import classnames from 'classnames';
|
||||
import { t } from '@superset-ui/translation';
|
||||
|
||||
import Button from '../../components/Button';
|
||||
import './QueryAndSaveBtns.css';
|
||||
|
||||
const propTypes = {
|
||||
canAdd: PropTypes.bool.isRequired,
|
||||
@@ -50,6 +52,7 @@ export default function QueryAndSaveBtns({
|
||||
}) {
|
||||
const saveClasses = classnames({
|
||||
'disabled disabledButton': !canAdd,
|
||||
'save-btn': true,
|
||||
});
|
||||
|
||||
let qryButtonStyle = 'default';
|
||||
@@ -61,17 +64,17 @@ export default function QueryAndSaveBtns({
|
||||
|
||||
const saveButtonDisabled = errorMessage ? true : loading;
|
||||
const qryOrStopButton = loading ? (
|
||||
<Button onClick={onStop} bsStyle="warning">
|
||||
<Button onClick={onStop} bsStyle="warning" className="save-btn">
|
||||
<i className="fa fa-stop-circle-o" /> Stop
|
||||
</Button>
|
||||
) : (
|
||||
<Button
|
||||
className="query"
|
||||
className="query save-btn"
|
||||
onClick={onQuery}
|
||||
bsStyle={qryButtonStyle}
|
||||
disabled={!!errorMessage}
|
||||
>
|
||||
<i className="fa fa-bolt" /> Run Query
|
||||
<i className="fa fa-bolt" /> {t('Run')}
|
||||
</Button>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user