Bladeren bron

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

tags/1.7.2
Joel 3 maanden geleden
bovenliggende
commit
c05c5953a8
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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 Bestand weergeven

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

Laden…
Annuleren
Opslaan