mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
chore: color schemes can be default theoretically (#1335)
This commit is contained in:
parent
b9504ed713
commit
2b01890cad
@ -3,6 +3,7 @@ export interface ColorSchemeConfig {
|
||||
description?: string;
|
||||
id: string;
|
||||
label?: string;
|
||||
isDefault?: boolean;
|
||||
}
|
||||
|
||||
export default class ColorScheme {
|
||||
@ -14,11 +15,13 @@ export default class ColorScheme {
|
||||
|
||||
label: string;
|
||||
|
||||
constructor(config: ColorSchemeConfig) {
|
||||
const { colors, description = '', id, label } = config;
|
||||
isDefault?: boolean;
|
||||
|
||||
constructor({ colors, description = '', id, label, isDefault }: ColorSchemeConfig) {
|
||||
this.id = id;
|
||||
this.label = label ?? id;
|
||||
this.colors = colors;
|
||||
this.description = description;
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user