mirror of https://github.com/apache/cloudstack.git
Allow obtaining a color for usage types that do not have a predefined one
This commit is contained in:
parent
cc7db602fe
commit
c2b19a8295
|
|
@ -649,7 +649,7 @@ export default {
|
|||
},
|
||||
getColor (row) {
|
||||
const quotaType = getQuotaTypeByName(row.name)
|
||||
if (quotaType) {
|
||||
if (quotaType?.chartColor) {
|
||||
return getChartColorObject(quotaType.chartColor)
|
||||
}
|
||||
return getChartColorObject(this.textToDeterministicColor(this.getName(row)))
|
||||
|
|
|
|||
Loading…
Reference in New Issue