Skip to content

Commit

Permalink
fix: adding additional configs and colors for queryHistory (apache#14995
Browse files Browse the repository at this point in the history
)

* 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
  • Loading branch information
AAfghahi authored and cccs-RyanS committed Dec 17, 2021
1 parent f9f1ef3 commit 22b9088
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions superset-frontend/src/SqlLab/components/QueryTable/index.jsx
Expand Up @@ -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: {
Expand All @@ -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',
},
},
};

Expand Down

0 comments on commit 22b9088

Please sign in to comment.