feat: Create portal UI improvements (#5261)
This commit is contained in:
8
app/javascript/dashboard/helper/labelColor.js
Normal file
8
app/javascript/dashboard/helper/labelColor.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export const getRandomColor = () => {
|
||||
const letters = '0123456789ABCDEF';
|
||||
let color = '#';
|
||||
for (let i = 0; i < 6; i += 1) {
|
||||
color += letters[Math.floor(Math.random() * 16)];
|
||||
}
|
||||
return color;
|
||||
};
|
||||
Reference in New Issue
Block a user