mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 00:00:50 +00:00
fix: Resolve the agent upgrade issue (#12780)
This commit is contained in:
@@ -578,6 +578,9 @@ func checkAgentUpgradable(install model.AppInstall) bool {
|
||||
if install.App.ID == 0 {
|
||||
return false
|
||||
}
|
||||
if ignoreUpdate(install) {
|
||||
return false
|
||||
}
|
||||
details, err := appDetailRepo.GetBy(appDetailRepo.WithAppId(install.App.ID))
|
||||
if err != nil || len(details) == 0 {
|
||||
return false
|
||||
|
||||
@@ -81,7 +81,6 @@
|
||||
<el-dropdown-menu>
|
||||
<fu-dropdown-item
|
||||
v-if="defaultable && !row.isDefault"
|
||||
v-permission
|
||||
command="default"
|
||||
:disabled="disabled || isBotActionDisabled(row)"
|
||||
>
|
||||
|
||||
@@ -341,7 +341,7 @@ const buttons = [
|
||||
label: i18n.global.t('commons.button.upgrade'),
|
||||
permission: true,
|
||||
click: (row: AI.AgentItem) => openUpgrade(row),
|
||||
disabled: (row: AI.AgentItem) => !row.upgradable,
|
||||
show: (row: AI.AgentItem) => row.upgradable,
|
||||
},
|
||||
{
|
||||
label: i18n.global.t('commons.button.delete'),
|
||||
|
||||
Reference in New Issue
Block a user