mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
committed by
GitHub
parent
d80c2ed72a
commit
8532e6d9e1
@@ -78,7 +78,7 @@ ${extra.issue_codes.map(issueCode => issueCode.message).join('\n')}`;
|
||||
|
||||
return (
|
||||
<ErrorAlert
|
||||
title={t('%s Error', extra.engine_name || t('DB Engine'))}
|
||||
title={t('%s Error', extra.engine_name || t('DB engine'))}
|
||||
subtitle={message}
|
||||
level={level}
|
||||
source={source}
|
||||
|
||||
@@ -120,7 +120,7 @@ export default function ErrorAlert({
|
||||
className="link"
|
||||
onClick={() => setIsModalOpen(true)}
|
||||
>
|
||||
{t('See More')}
|
||||
{t('See more')}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
@@ -136,7 +136,7 @@ export default function ErrorAlert({
|
||||
className="link"
|
||||
onClick={() => setIsBodyExpanded(true)}
|
||||
>
|
||||
{t('See More')}
|
||||
{t('See more')}
|
||||
</span>
|
||||
)}
|
||||
{isBodyExpanded && (
|
||||
@@ -149,7 +149,7 @@ export default function ErrorAlert({
|
||||
className="link"
|
||||
onClick={() => setIsBodyExpanded(false)}
|
||||
>
|
||||
{t('See Less')}
|
||||
{t('See less')}
|
||||
</span>
|
||||
</>
|
||||
)}
|
||||
@@ -178,7 +178,7 @@ export default function ErrorAlert({
|
||||
text={copyText}
|
||||
shouldShowText={false}
|
||||
wrapped={false}
|
||||
copyNode={<Button onClick={noOp}>{t('Copy Message')}</Button>}
|
||||
copyNode={<Button onClick={noOp}>{t('Copy message')}</Button>}
|
||||
/>
|
||||
)}
|
||||
<Button
|
||||
|
||||
@@ -23,7 +23,7 @@ import getErrorMessageComponentRegistry from './getErrorMessageComponentRegistry
|
||||
import { SupersetError, ErrorSource } from './types';
|
||||
import ErrorAlert from './ErrorAlert';
|
||||
|
||||
const DEFAULT_TITLE = t('Unexpected Error');
|
||||
const DEFAULT_TITLE = t('Unexpected error');
|
||||
|
||||
type Props = {
|
||||
title?: string;
|
||||
|
||||
@@ -111,7 +111,7 @@ ${extra.issue_codes.map(issueCode => issueCode.message).join('\n')}`;
|
||||
|
||||
return (
|
||||
<ErrorAlert
|
||||
title={t('Parameter Error')}
|
||||
title={t('Parameter error')}
|
||||
subtitle={message}
|
||||
level={level}
|
||||
source={source}
|
||||
|
||||
@@ -95,7 +95,7 @@ ${extra.issue_codes.map(issueCode => issueCode.message).join('\n')}`;
|
||||
|
||||
return (
|
||||
<ErrorAlert
|
||||
title={t('Timeout Error')}
|
||||
title={t('Timeout error')}
|
||||
subtitle={subtitle}
|
||||
level={level}
|
||||
source={source}
|
||||
|
||||
Reference in New Issue
Block a user