Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-10-26 15:23:32 +03:00
1 parent 1d1fe70c39
commit a33165044e
2 files changed
+14 -6

No files matched your search

@@ -98,6 +98,19 @@ export class InstallChartStore extends DockTabStore<IChartInstallData> {
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();
@@ -145,7 +145,7 @@ export class LogTabStore extends DockTabStore<LogTabData> {
this.renameTab(tabId);
} else {
this.closeTab(tabId);
this.clearData(tabId);
}
} catch (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();