Browse Source

fix: disabled auto update but still show in plugin detail (#23150)

tags/1.7.2
Joel 3 months ago
parent
commit
c05c5953a8
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      web/app/components/plugins/plugin-detail-panel/detail-header.tsx

+ 2
- 0
web/app/components/plugins/plugin-detail-panel/detail-header.tsx View File

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

Loading…
Cancel
Save