瀏覽代碼

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

tags/1.7.2
Joel 3 月之前
父節點
當前提交
c05c5953a8
沒有連結到貢獻者的電子郵件帳戶。
共有 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…
取消
儲存