mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[explorev2] using label in 'Visualization Type' Select instead of key (#1927)
* [explorev2] using label in 'Visualization Type' Select * moved url related logic upstream in the caller * moved option creation logic from render method to the constructor as it only needs to be executed once * Refactoring out getOptions
This commit is contained in:
committed by
GitHub
parent
0ce7fc18a8
commit
ff4020ea73
@@ -44,7 +44,11 @@ export const fields = {
|
||||
label: 'Visualization Type',
|
||||
clearable: false,
|
||||
default: 'table',
|
||||
choices: formatSelectOptions(Object.keys(visTypes)),
|
||||
choices: Object.keys(visTypes).map(vt => [
|
||||
vt,
|
||||
visTypes[vt].label,
|
||||
`/static/assets/images/viz_thumbnails/${vt}.png`,
|
||||
]),
|
||||
description: 'The type of visualization to display',
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user