mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
chore: Localization of superset pt. 3 (#22938)
Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
@@ -182,10 +182,11 @@ const TableElement = ({ table, ...props }: TableElementProps) => {
|
||||
|
||||
const renderControls = () => {
|
||||
let keyLink;
|
||||
const KEYS_FOR_TABLE_TEXT = t('Keys for table');
|
||||
if (table?.indexes?.length) {
|
||||
keyLink = (
|
||||
<ModalTrigger
|
||||
modalTitle={`${t('Keys for table')} ${table.name}`}
|
||||
modalTitle={`${KEYS_FOR_TABLE_TEXT} ${table.name}`}
|
||||
modalBody={table.indexes.map((ix, i) => (
|
||||
<pre key={i}>{JSON.stringify(ix, null, ' ')}</pre>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user