mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
clean up
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
1d1fe70c39
commit
a33165044e
@ -98,6 +98,19 @@ export class InstallChartStore extends DockTabStore<IChartInstallData> {
|
|||||||
return this.loadValues(tabId, attempt + 1);
|
return this.loadValues(tabId, attempt + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearData(tabId: TabId) {
|
||||||
|
super.clearData(tabId);
|
||||||
|
|
||||||
|
this.details.delete(tabId);
|
||||||
|
this.versions.delete(tabId);
|
||||||
|
}
|
||||||
|
|
||||||
|
reset() {
|
||||||
|
super.reset();
|
||||||
|
this.details.clear();
|
||||||
|
this.versions.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const installChartStore = new InstallChartStore();
|
export const installChartStore = new InstallChartStore();
|
||||||
|
|||||||
@ -145,7 +145,7 @@ export class LogTabStore extends DockTabStore<LogTabData> {
|
|||||||
|
|
||||||
this.renameTab(tabId);
|
this.renameTab(tabId);
|
||||||
} else {
|
} else {
|
||||||
this.closeTab(tabId);
|
this.clearData(tabId);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`[LOG-TAB-STORE]: failed to set data for tabId=${tabId} deleting`, error,);
|
logger.error(`[LOG-TAB-STORE]: failed to set data for tabId=${tabId} deleting`, error,);
|
||||||
@ -153,11 +153,6 @@ export class LogTabStore extends DockTabStore<LogTabData> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private closeTab(tabId: string) {
|
|
||||||
this.clearData(tabId);
|
|
||||||
dockStore.closeTab(tabId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const logTabStore = new LogTabStore();
|
export const logTabStore = new LogTabStore();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user