fix: disabled auto update but still show in plugin detail (#23150)
This commit is contained in:
parent
eee576355b
commit
c05c5953a8
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue