1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2021-10-26 14:27:49 +03:00
parent 1d1fe70c39
commit a33165044e
2 changed files with 14 additions and 6 deletions

View File

@ -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();

View File

@ -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();