mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
fbcb2fd281
commit
79e5d6eddc
9 files changed
+27
-16
No files matched your search
@@ -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
|
||||
});
|
||||
|
||||
@@ -14,6 +14,7 @@ export type ClusterId = string;
|
||||
export interface ClusterModel {
|
||||
id: ClusterId;
|
||||
workspace?: string;
|
||||
contextName?: string;
|
||||
preferences?: ClusterPreferences;
|
||||
kubeConfigPath: string;
|
||||
|
||||
|
||||
Reference in new issue
Block a user