fixes / refactoring

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-14 15:39:35 +03:00
1 parent fbcb2fd281
commit 79e5d6eddc
9 files changed
+27 -16

No files matched your search

+2 -2
View File
@@ -92,14 +92,14 @@ export class BaseStore<T = any> extends Singleton {
protected onConfigChange(data: T, oldValue: Partial<T>) {
if (!isEqual(this.toJSON(), data)) {
logger.debug(`💿 Store received update from ${this.name}`, { data, oldValue });
logger.info(`💿 Store received update from ${this.name}`, { data, oldValue });
this.fromStore(data);
}
}
protected onModelChange(model: T) {
if (!isEqual(this.storeModel, model)) {
logger.debug(`💿 Store ${this.name} is saving updates from app runtime`, {
logger.info(`💿 Store ${this.name} is saving updates from app runtime`, {
data: model,
oldValue: this.storeModel
});
+1
View File
@@ -14,6 +14,7 @@ export type ClusterId = string;
export interface ClusterModel {
id: ClusterId;
workspace?: string;
contextName?: string;
preferences?: ClusterPreferences;
kubeConfigPath: string;