mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 03:20:11 +00:00
Fix Proxmox tag color parsing (#1348)
This commit is contained in:
parent
40249947ed
commit
1885bd02c0
3 changed files with 83 additions and 3 deletions
|
|
@ -48,6 +48,18 @@ describe('tagColors', () => {
|
|||
expect(colorA.bg).not.toBe(colorB.bg);
|
||||
});
|
||||
|
||||
it('prefers proxmox-supplied colors over fallback palettes', () => {
|
||||
const color = getTagColorWithSpecial('Production', false, {
|
||||
production: '#112233',
|
||||
});
|
||||
|
||||
expect(color).toEqual({
|
||||
bg: '#112233',
|
||||
text: '#ffffff',
|
||||
border: '#112233',
|
||||
});
|
||||
});
|
||||
|
||||
it('generates dark mode hash-based colors', () => {
|
||||
const color = getTagColorWithSpecial('custom', true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue