Removing icon refs from CatalogEntitySpec

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2021-06-21 09:40:36 +03:00
1 parent 67c7c454bb
commit 658caa774e
3 files changed
+9 -8

No files matched your search

+4
View File
@@ -25,6 +25,10 @@ import { catalogCategoryRegistry } from "../catalog/catalog-category-registry";
interface GeneralEntitySpec extends CatalogEntitySpec {
path: string;
icon?: {
material?: string;
background?: string;
};
}
export class GeneralEntity extends CatalogEntity<CatalogEntityMetadata, CatalogEntityStatus, GeneralEntitySpec> {
@@ -38,6 +38,9 @@ export interface KubernetesClusterPrometheusMetrics {
prefix: string;
};
type?: string;
icon?: {
src?: string;
};
}
export interface KubernetesClusterSpec extends CatalogEntitySpec {
+2 -8
View File
@@ -147,14 +147,8 @@ export interface CatalogEntityAddMenuContext {
menuItems: CatalogEntityAddMenu[];
}
export interface CatalogEntitySpec {
icon?: {
src?: string;
material?: string;
background?: string;
};
[key: string]: any;
}
export type CatalogEntitySpec = Record<string, any>;
export interface CatalogEntityData<
Metadata extends CatalogEntityMetadata = CatalogEntityMetadata,