mirror of https://github.com/apache/superset.git
[sql lab] run button shortcut tooltip (#3310)
This commit is contained in:
parent
84e59a11f1
commit
c4e056929d
|
@ -18,7 +18,7 @@ export default function RunQueryActionButton(props) {
|
||||||
const runBtnText = props.selectedText ? 'Run Selected Query' : 'Run Query';
|
const runBtnText = props.selectedText ? 'Run Selected Query' : 'Run Query';
|
||||||
const btnStyle = props.selectedText ? 'warning' : 'primary';
|
const btnStyle = props.selectedText ? 'warning' : 'primary';
|
||||||
const shouldShowStopBtn = ['running', 'pending'].indexOf(props.queryState) > -1;
|
const shouldShowStopBtn = ['running', 'pending'].indexOf(props.queryState) > -1;
|
||||||
const asyncToolTip = 'Run query asynchronously';
|
const tooltip = 'shortcut: [alt+enter]';
|
||||||
|
|
||||||
const commonBtnProps = {
|
const commonBtnProps = {
|
||||||
bsSize: 'small',
|
bsSize: 'small',
|
||||||
|
@ -31,6 +31,7 @@ export default function RunQueryActionButton(props) {
|
||||||
{...commonBtnProps}
|
{...commonBtnProps}
|
||||||
onClick={() => props.runQuery(false)}
|
onClick={() => props.runQuery(false)}
|
||||||
key="run-btn"
|
key="run-btn"
|
||||||
|
tooltip={tooltip}
|
||||||
>
|
>
|
||||||
<i className="fa fa-refresh" /> {runBtnText}
|
<i className="fa fa-refresh" /> {runBtnText}
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -41,7 +42,7 @@ export default function RunQueryActionButton(props) {
|
||||||
{...commonBtnProps}
|
{...commonBtnProps}
|
||||||
onClick={() => props.runQuery(true)}
|
onClick={() => props.runQuery(true)}
|
||||||
key="run-async-btn"
|
key="run-async-btn"
|
||||||
tooltip={asyncToolTip}
|
tooltip={tooltip}
|
||||||
>
|
>
|
||||||
<i className="fa fa-table" /> {runBtnText}
|
<i className="fa fa-table" /> {runBtnText}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Reference in New Issue