mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -03:30
Adjust host status colors
This commit is contained in:
@@ -30,24 +30,24 @@ const HostStatusBar = ({ i18n, counts = {} }) => {
|
|||||||
const noData = Object.keys(counts).length === 0;
|
const noData = Object.keys(counts).length === 0;
|
||||||
const hostStatus = {
|
const hostStatus = {
|
||||||
ok: {
|
ok: {
|
||||||
color: '#92D400',
|
color: '#4CB140',
|
||||||
label: i18n._(t`OK`),
|
label: i18n._(t`OK`),
|
||||||
},
|
},
|
||||||
dark: {
|
skipped: {
|
||||||
color: '#470000',
|
color: '#73BCF7',
|
||||||
label: i18n._(t`Unreachable`),
|
label: i18n._(t`Skipped`),
|
||||||
},
|
|
||||||
failures: {
|
|
||||||
color: '#C9190B',
|
|
||||||
label: i18n._(t`Failed`),
|
|
||||||
},
|
},
|
||||||
changed: {
|
changed: {
|
||||||
color: '#F0AB00',
|
color: '#F0AB00',
|
||||||
label: i18n._(t`Changed`),
|
label: i18n._(t`Changed`),
|
||||||
},
|
},
|
||||||
skipped: {
|
failures: {
|
||||||
color: '#73BCF7',
|
color: '#C9190B',
|
||||||
label: i18n._(t`Skipped`),
|
label: i18n._(t`Failed`),
|
||||||
|
},
|
||||||
|
dark: {
|
||||||
|
color: '#8B8D8F',
|
||||||
|
label: i18n._(t`Unreachable`),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -29,10 +29,10 @@ describe('<HostStatusBar />', () => {
|
|||||||
const tooltips = wrapper.find('TooltipContent');
|
const tooltips = wrapper.find('TooltipContent');
|
||||||
const expectedContent = [
|
const expectedContent = [
|
||||||
{ label: 'OK', count: 5 },
|
{ label: 'OK', count: 5 },
|
||||||
{ label: 'Unreachable', count: 0 },
|
|
||||||
{ label: 'Failed', count: 0 },
|
|
||||||
{ label: 'Changed', count: 0 },
|
|
||||||
{ label: 'Skipped', count: 1 },
|
{ label: 'Skipped', count: 1 },
|
||||||
|
{ label: 'Changed', count: 0 },
|
||||||
|
{ label: 'Failed', count: 0 },
|
||||||
|
{ label: 'Unreachable', count: 0 },
|
||||||
];
|
];
|
||||||
|
|
||||||
tooltips.forEach((tooltip, index) => {
|
tooltips.forEach((tooltip, index) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user