mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat: add warning metadata to tables and metrics (#13606)
This commit is contained in:
@@ -30,6 +30,7 @@ import FormLabel from 'src/components/FormLabel';
|
||||
import DatabaseSelector from 'src/components/DatabaseSelector';
|
||||
import RefreshLabel from 'src/components/RefreshLabel';
|
||||
import CertifiedIconWithTooltip from 'src/components/CertifiedIconWithTooltip';
|
||||
import WarningIconWithTooltip from 'src/components/WarningIconWithTooltip';
|
||||
|
||||
const FieldTitle = styled.p`
|
||||
color: ${({ theme }) => theme.colors.secondary.light2};
|
||||
@@ -266,6 +267,12 @@ const TableSelector: FunctionComponent<TableSelectorProps> = ({
|
||||
size={20}
|
||||
/>
|
||||
)}
|
||||
{option.extra?.warning_markdown && (
|
||||
<WarningIconWithTooltip
|
||||
warningMarkdown={option.extra.warning_markdown}
|
||||
size={20}
|
||||
/>
|
||||
)}
|
||||
{option.label}
|
||||
</TableLabel>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user