Преглед на файлове

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

tags/1.7.2
Joel преди 3 месеца
родител
ревизия
c05c5953a8
No account linked to committer's email address
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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 Целия файл

@@ -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…
Отказ
Запис