From c05c5953a839b74d4b83efc544606add3e65fb9e Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 30 Jul 2025 11:15:06 +0800 Subject: [PATCH] fix: disabled auto update but still show in plugin detail (#23150) --- .../components/plugins/plugin-detail-panel/detail-header.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx index e5d1458140..9f20a0e228 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -124,6 +124,8 @@ const DetailHeader = ({ const isAutoUpgradeEnabled = useMemo(() => { if (!autoUpgradeInfo || !isFromMarketplace) return false + if(autoUpgradeInfo.strategy_setting === 'disabled') + return false if(autoUpgradeInfo.upgrade_mode === AUTO_UPDATE_MODE.update_all) return true if(autoUpgradeInfo.upgrade_mode === AUTO_UPDATE_MODE.partial && autoUpgradeInfo.include_plugins.includes(plugin_id))