mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix(sqllab): fix error message (#14651)
This commit is contained in:
parent
b5e9854ddc
commit
2320bd44d4
@ -36,11 +36,13 @@ SyntaxHighlighter.registerLanguage('json', jsonSyntax);
|
|||||||
|
|
||||||
const SyntaxHighlighterWrapper = styled.div`
|
const SyntaxHighlighterWrapper = styled.div`
|
||||||
margin-top: -24px;
|
margin-top: -24px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
svg {
|
svg {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 40px;
|
top: 40px;
|
||||||
@ -64,13 +66,13 @@ export default function SyntaxHighlighterCopy({
|
|||||||
function copyToClipboard(textToCopy: string) {
|
function copyToClipboard(textToCopy: string) {
|
||||||
copyTextToClipboard(textToCopy)
|
copyTextToClipboard(textToCopy)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (addDangerToast) {
|
if (addSuccessToast) {
|
||||||
addDangerToast(t('Sorry, your browser does not support copying.'));
|
addSuccessToast(t('SQL Copied!'));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
if (addSuccessToast) {
|
if (addDangerToast) {
|
||||||
addSuccessToast(t('SQL Copied!'));
|
addDangerToast(t('Sorry, your browser does not support copying.'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user