From de103ff91e71be1670f80bf24f9873bd7330c040 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Mon, 2 Mar 2026 16:47:20 +0800 Subject: [PATCH] fix: missing Download Logs button in Rancher integration mode (#715) * fix: missing Download Logs button in Rancher integration mode Signed-off-by: Andy Lee * refactor: add comment Signed-off-by: Andy Lee --------- Signed-off-by: Andy Lee --- pkg/harvester/store/harvester-store/actions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/harvester/store/harvester-store/actions.ts b/pkg/harvester/store/harvester-store/actions.ts index 55d83f8e..74776173 100644 --- a/pkg/harvester/store/harvester-store/actions.ts +++ b/pkg/harvester/store/harvester-store/actions.ts @@ -98,6 +98,11 @@ export default { if (getters['schemaFor'](HCI.UPGRADE)) { hash.upgrades = dispatch('findAll', { type: HCI.UPGRADE }); } + // Pre-fetch all HCI.UPGRADE_LOG data within loadCluster to ensure HarvesterUpgradeHeader has the necessary data. This is required because the header is dynamically loaded before the user enters the cluster in Rancher integration mode. + // See more details in https://github.com/harvester/harvester-ui-extension/pull/715 + if (getters['schemaFor'](HCI.UPGRADE_LOG)) { + hash.upgradeLogs = dispatch('findAll', { type: HCI.UPGRADE_LOG }); + } const res: any = await allHash(hash);