Skip to content

Commit

Permalink
Add description field
Browse files Browse the repository at this point in the history
  • Loading branch information
kaapstorm committed Feb 4, 2024
1 parent 9d01f0d commit 711f5bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ const ChangeDatasourceModal: FunctionComponent<ChangeDatasourceModalProps> = ({
};

const columns = [
{
Header: t('Description'),
accessor: 'description',
},
{
Cell: ({ row: { original } }: any) => (
<StyledSpan
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/pages/ChartCreation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export class ChartCreation extends React.PureComponent<
</TooltipContent>
}
>
<StyledLabel>{item.table_name}</StyledLabel>
<StyledLabel>{item.description}</StyledLabel>
</Tooltip>
);
}
Expand Down
5 changes: 5 additions & 0 deletions superset-frontend/src/pages/DatasetList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ const DatasetList: FunctionComponent<DatasetListProps> = ({
size: 'xs',
id: 'id',
},
{
Header: t('Description'),
accessor: 'description',
size: 'md',
},
{
Cell: ({
row: {
Expand Down

0 comments on commit 711f5bf

Please sign in to comment.