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 fbd641f commit 4e645ac
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 @@ -198,6 +198,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 @@ -298,7 +298,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/views/CRUD/data/dataset/DatasetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ const DatasetList: FunctionComponent<DatasetListProps> = ({
size: 'xs',
id: 'id',
},
{
Header: t('Description'),
accessor: 'description',
size: 'md',
},
{
Cell: ({
row: {
Expand Down

0 comments on commit 4e645ac

Please sign in to comment.