mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: adding additional configs and colors for queryHistory (#14995)
* added additional configs and colors for queryHistory * added condition to status icon * Update superset-frontend/src/SqlLab/components/QueryTable/index.jsx * Update superset-frontend/src/SqlLab/components/QueryTable/index.jsx
This commit is contained in:
parent
8798da41a7
commit
7f4e036433
@ -88,6 +88,14 @@ const statusAttributes = {
|
||||
status: 'running',
|
||||
},
|
||||
},
|
||||
fetching: {
|
||||
color: ({ theme }) => theme.colors.primary.base,
|
||||
config: {
|
||||
name: 'queued',
|
||||
label: t('fetching'),
|
||||
status: 'fetching',
|
||||
},
|
||||
},
|
||||
timed_out: {
|
||||
color: ({ theme }) => theme.colors.grayscale.light1,
|
||||
config: {
|
||||
@ -97,14 +105,20 @@ const statusAttributes = {
|
||||
},
|
||||
},
|
||||
scheduled: {
|
||||
name: 'queued',
|
||||
label: t('Scheduled'),
|
||||
status: 'queued',
|
||||
color: ({ theme }) => theme.colors.greyscale.base,
|
||||
config: {
|
||||
name: 'queued',
|
||||
label: t('Scheduled'),
|
||||
status: 'queued',
|
||||
},
|
||||
},
|
||||
pending: {
|
||||
name: 'queued',
|
||||
label: t('Scheduled'),
|
||||
status: 'queued',
|
||||
color: ({ theme }) => theme.colors.greyscale.base,
|
||||
config: {
|
||||
name: 'queued',
|
||||
label: t('Scheduled'),
|
||||
status: 'queued',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user